cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
stringhe.php
the manual
  manipolazione di stringhe

  • le stringhe sono vettori: $stringa[0] = primo carattere,
    $stringa[$strlen($stringa)-1] = ultimo carattere
  • ereg evaluate regular expression
  • strchr prima occorrenza di un carattere in una stringa
  • strrchr ultima occorrenza di un carattere in una stringa
  • substr sottostringa
  • substr_count($string,$ministrig) conta le occorrenze di ministring

  • substr_replace($string,$replace,inizio,lunghezza)
  • str_replace($cosa,$conchecosa,$stringa)
  • strtr($stringa,$cosa,$conchecosa)

  • strstr cerca una stringa in un'altra e restituisce il resto
    <? echo strstr ($email, '@'); ?> restituisce @unimo.it
    <? echo strstr ($HTTP_USER_AGENT,"MSIE"); ?> restituisce
  • stristr strstr case insensitive

  • split($pattern,$string[,max]) divide una stringa in parti: il risultato � un'array o una lista: list ($month, $day, $year) = split ('[/.-]', $date);
    Se il separatore � un carattere, e non � necessario il motore delle espressioni regolari, si usi explode($char,$string)
  • implode("-",$array) converte un'array in una stringa

  • parse $str = "first=value&second[]=this+works&second[]=another"; parse_str($str); echo $first; /* prints "value" */ echo $second[0]; /* prints "this works" */ echo $second[1]; /* prints "another" */

  • stripslashes addslashes quotemeta

  • crypt