gibney.org : Technology : Programming : Coding Conventions : No strange nestings


just a logo :)

search:


See as: raw | code

terms of service | imprint

gibney.org
is powered by m1d1





No strange nestings
(Entry Nr. 97, by user 1 | edit)
Dont do this:

$Search=trim(preg_replace('/[^a-z0-9δόφ]/i',' ',$Search));
return str_replace(' ','|',$Search);

Do this:

$Search=preg_replace('/[^a-z0-9δόφ]/i',' ',$Search);
$Search=trim($Search);
$Search=str_replace(' ','|',$Search);
return $Search;
Create a new entry at this position