Jump to content
php.lv forumi

Ereg f-ja


tiy

Recommended Posts

Kads var isti paskaidrot ka tas darobjas

 

caur input tiek sanemt strings name, vajaga apskatities vai vina ir tikai A-Z un a-z

jo kaut kadi gluki vadu ieksha "sss1"==ok "sss"==ok "222"=shit?

 

 

lasiju php.net nevaru iebraukt ,

 

[]-ko dara shie parametri

{}- un ko shie

 

if( ereg("([A-Za-z]{1,65)",$Name) )
 echo "ok";else echo "shit";

Link to comment
Share on other sites

×
×
  • Create New...