الفصل السادس
print_r($arr2);
// Example str_pad()
$input = "Alien";
print str_pad($input, 10);
// produces "Alien
11
print str_pad($input, 10, "--", STR_PAD_LEFT); // produces Alien"
print str_pad($input, 10, "_", STR_PAD_BOTH); // produces Alien
// Str_repeat() example
echo str_repeat ("-=", 10);
http://localhost/test/p7/new19-Micr. X
Eile Edit View Favorites Tools Help
Back
Forward
Stop Refresh Home
Address
http://localhost/test/p7/ne
Go Links
21 Done
// Strstr() example
Eg Local intranet
$email = '[email protected]'; $domain
-
strstr ($email, '@');
print $domain; // prints @designmultimedia.com
http://localhost/test/p7/new20 Micr... OX
Elle Edit View Favorites Tools Help
Back
Forwar
Stop Refresh Home
Address
//localhost/test/p7/new20
Go Links
@designmultimedia.com
1 Done
// Strtok() example
$string = "This is an example string";
Local intranet
متنوعات
۲۱۰
ص ٢١٠