php loops


  • while 
  • do...while
  • for 
  • foreach

kind of arrays in php


  • Numeric array 
  • Associative array 
  • Multidimensional array

strpos() function in php

strpos function used search character and text with in string,if function found matches will return matches first position otherwise return FALSE.


ex:
<?phpecho strpos("Hello,",",");
?>

it will be return 6