I have a really simple question that I couldn't solve using online help...
Well I have an URL, eg. "www.google.com/hello/xxxxxxxx"
What I'm trying to do is get that xxxxxxx and print it. I have already gathered the URL of the page I want to split with a SQL statement, and it is now stored in the $row['url']. I have tried to get it it split when it reaches an "/"
This is my code right now:
$url = preg_split("[/.-]", $row['url']);
print_r($url);
But it doesn't work? Right now it doesn't even print anything... and I don't know what else to try!
'/[\/.-]/