|
|
Tutorials » Php »
|
Topic |
What is strstr Function?
|
|
Explanation |
|
The "strstr" function is used find the first occurence of a string.
Syntax:
strstr(string,char)
In the above syntax "string" specifies the string to be searched, "char" specifies the string to be looked for.
Example:
<?php
echo strstr("Hi folks!",o);
?>
Result:
olks!
In the above example the string is displayed from the first occurence of the character "o".
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|