11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 9 • STRINGS AND REGULAR EXPRESSIONSwww.it-ebooks.infostring implode(string delimiter, array pieces)This example forms a string out of the elements of an array:This returns the following:Columbus|Akron|Cleveland|CincinnatiPerforming Complex String ParsingThe strpos() function finds the position of the first case-sensitive occurrence of a substring in a string.Its prototype follows:int strpos(string str, string substr [, int offset])The optional input parameter offset specifies the position at which to begin the search. If substr isnot in str, strpos() will return FALSE. The optional parameter offset determines the position from whichstrpos() will begin searching. The following example determines the timestamp of the first timeindex.html is accessed:This returns the position in which the file index.html is first accessed:218

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!