Jump to content

Get some text from URL


cataiin

Recommended Posts

Hei. Sorry for bad english.

Need a little help.

 

I have this code:

$mama = $_SERVER['REQUEST_URI'];
$tata = rawurldecode($mama);
$asta= 'titlu=';
preg_match("|$asta(.*)|",$tata,$bunica);
$tataie = $bunica['1'];
echo $tataie;

Result is:

 

Now I want to get some text from that page. There is something like: "class":"cjbzeo"," and I need only cjbzeo.

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/281689-get-some-text-from-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.