PHP Classes

File: tests/summary.php

Recommend this page to a friend!
  Classes of Ali YILMAZ  >  Mind Framework  >  tests/summary.php  >  Download  
File: tests/summary.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 3 months ago
Size: 598 bytes
 

Contents

Class file image Download
<?php
require_once ('../src/Mind.php');

$Mind = new Mind([
   
'db'=>[
       
'drive' => 'mysql', // mysql, sqlite
       
'host' => 'localhost',
       
'dbname' => 'mydb', // mydb, app/migration/mydb.sqlite
       
'username' => 'root',
       
'password' => '',
       
'charset' => 'utf8mb4'
   
]
]);

$str = 'Türkiye\'de, yakla??k 10.000 bitki türü yeti?ir. Bu bitki türlerinin yakla??k 3.000\'i ise Türkiye\'ye endemiktir. Bu özelli?i ile Türkiye, tüm Avrupa\'dakinden daha fazla endemik bitki türüne sahiptir.';
echo
$Mind->summary($str, 46, ' ...');

For more information send a message to info at phpclasses dot org.