Skip to content

Instantly share code, notes, and snippets.

View ondrejmirtes's full-sized avatar

Ondřej Mirtes ondrejmirtes

View GitHub Profile
<?php
function mb_str_split($string,$string_length=1) {
if(mb_strlen($string) > $string_length || !$string_length) {
do {
$c = mb_strlen($string);
$parts[] = mb_substr($string,0,$string_length);
$string = mb_substr($string,$string_length);
}while(!empty($string));
} else {
<?php
namespace Proj;
use Nette\Debug,
Nette\Environment,
PDO,
NotORM,
NotOrmPanel,
NotORM_Structure_Convention;