phpnoob Posted March 13, 2010 Share Posted March 13, 2010 HiI want to make a good $_GET secureToday i make a simple one $string=$_GET['n'];$regExp = "/()(.*?)( )/";$outputArray = array();if ( preg_match($regExp, $string, $outputArray) ){$num=$outputArray[2];} Plz help me for a better one, this function only the space character searching and stop if find one, i want a complicated searching for specific character and if find it than stop. Link to comment Share on other sites More sharing options...
justsomeguy Posted March 15, 2010 Share Posted March 15, 2010 The strpos function is used to find a certain character or string inside another string. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.