check for number anywhere in a string

embaliasalmem

New Member
\[code\]$vari = "testing 245";$numb = 0..9;$numb_pos = strpos($vari,$numb);echo substr($vari,0,$numb_pos);\[/code\]The $numb is numbers from 0 to 9Where am I wrong here, all I need to echo is testing
 
Back
Top