Question:For an arbitrary string $mystring, which of the following checks will correctly determine if the string PHP exists within it? 

A if(strpos($mystring, "PHP") !== false) 

B if(!strpos($mystring,"PHP")) 

C if(strpos($mystring, "PHP") === true) 

D if(strloc($mystring, "PHP") == true) 

E if(strloc($mystring, "PHP") === false) 

+ Answer
+ Report
Total Preview: 1247

Copyright © 2024. Powered by Intellect Software Ltd