You can use substr and strpos to get it.
$ii = 0;
$jj = 0;
if (FALSE !== ($ii = strpos($url, 'twitpic.com')))
{
$jj = strpos($url, '&', $ii);
$twitpicUrl = substr($url, $ii, ($jj-$ii));
}
Or something like that.
Shawn
On Apr 28, 7:54 am, Kyle Decot <[email protected]> wrote:
> I know this isn't specifically a CakePHP question but I thought I
> would see any any of you could help me out anyways. I am getting a
> feed of Twitter updates and I want to check each one to see if it has
> ahttp://twitpic.com URL in it. How would I go about getting the
> TwitPic URL out of it? I know it will be some sort of regex but I am
> no good at them so I was hoping someone could help me out. Thanks as
> always for any help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---