PHP strpbrk() Function
Complete PHP String Reference
Definition and Usage
The strpbrk() function searches a string for any of the specified characters.
This function returns the rest of the string from where it found the first
occurrence of
a specified character, otherwise it returns FALSE.
Syntax
| Parameter |
Description |
| string |
Required. Specifies the string to search |
| charlist |
Required. Specifies the characters to find |
Tips and Notes
Note: This function is case-sensitive.
Example
<?php
echo strpbrk("Hello world!","oe");
?>
|
The output of the code above will be:
Complete PHP String Reference

The Altova MissionKit is an integrated suite of tools ideal for:
- XML development
- Web & Web services development
- Data mapping & integration
- Rendering & publishing XML & database data
- XBRL validation, taxonomy editing, transformation & rendering
The MissionKit for XML Developers includes XMLSpy® - the industry-leading XML editor; MapForce® - a
graphical data mapping, conversion, and integration tool; StyleVision® - a visual XSLT stylesheet designer;
DiffDog® - an XML-aware diff/merge tool; and 2 additional tools.
Try all 6 products free for 30 days!
Download a fully-functional free trial
|
|
|
|