Find and start from first occurrence of a string PHP
RegisterLogin
Find and start from first occurrence of a string PHP
Post Description: Find and start from first occurrence of a string PHP
Tags: Find, and, start, from, first, occurrence, of, a, string, PHP
This Post Was Posted On Feb 29, 2008 By web hosting #1256
Post Description: Find and start from first occurrence of a string PHP
Tags: Find, and, start, from, first, occurrence, of, a, string, PHP
This Post Was Posted On Feb 29, 2008 By web hosting #1256
Find and start from first occurrence of a string PHP by web hosting
$string = "i find that wallpaperama has many beautiful wallpapers"
and i only want to show "wallpaperama has many beautiful wallpapers"
i can do this with php strstr() function by using this code
<?php
$string = "i find that wallpaperama has many beautiful wallpapers";
$newstring =strstr ($string, "wallpaperama");
echo($newstring);
?>
$string = "i find that wallpaperama has many beautiful wallpapers";
$newstring =strstr ($string, "wallpaperama");
echo($newstring);
?>
and this would be the output:
wallpaperama has many beautiful wallpapers
basically, what i did with this php code, i told php to remove anything before wallpaperama
hope this helps
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Mon Dec 26, 2011 1:04 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3