Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
strstr.php : strstr « String « PHP
PHP
String
strstr
strstr.php
<?php $url =
"sales@example.com"
; echo ltrim(strstr($url,
"@"
),
"@"
); ?>
Related examples in the same category
1.
string strstr ( string haystack, string needle ) finds the first occurrence of a substring inside another string (parameter one)
2.
strstr function demo
3.
strstr() function returns the remainder of string beginning at the first occurrence.
4.
strtr() function converts all characters contained in destination to their corresponding character matches in source.
5.
strtr.php