php string extract
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #1
php string extract
how can i extract some a part of a string.

EX: jjZD63BWKgA from http://www.youtube.com/watch?v=jjZD63BWKgA

or xex9vf from http://www.dailymotion.com/video/xex9vf_...http://www.dailymotion.com/video/xex9vf_bipasha-basu-on-aakrosh_

[Image: banner.png]
(This post was last modified: 09-26-2010 04:34 PM by techu.)
09-26-2010 04:29 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: php string extract
Either through regular expressions (eg preg_match) or finding the positions in the string you want (ie strpos) and extracting a portion of it (substr).

My Blog
09-26-2010 05:16 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #3
RE: php string extract
php is very interesting, I have just started playing with php, thanks for helping.
Some of the functions are similar to c and c++..


BTW does file_get_contents or curl work in php template?

[Image: banner.png]
(This post was last modified: 09-26-2010 08:35 PM by techu.)
09-26-2010 07:37 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: php string extract
If you're referring to my plugin, any valid PHP will work.

My Blog
09-26-2010 09:39 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #5
RE: php string extract
thanks...

[Image: banner.png]
09-27-2010 01:26 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: