PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// get the url, slice it and store in array
$url = "http://webpage.com/folder/bob";
$url = rtrim($url, '/');
$url = explode('/', $url);
/// now you have an array, you can take it from here
var_dump($url);
// get the url, slice it and store in array
$url = "http://webpage.com/folder/bob";
$url = rtrim($url, '/');
$url = explode('/', $url);
/// now you have an array, you can take it from here
var_dump($url);
Thank you and I am sorry for it wasn't clear before.
I mean, if I (ale) go to mywebsite.com I will type in the browser http://mywebsite.com/ale, then I want to use the "ale" to find in my database
// get the url, slice it and store in array
$url = "http://webpage.com/folder/bob";
$url = rtrim($url, '/');
$url = explode('/', $url);
/// now you have an array, you can take it from here
var_dump($url);
now was when I understood the script, work perfect, took me some time to analyzed remember I am starting