I have the PHP code below, so my question is how can I refine it?
$slug = $_SERVER['REQUEST_URI'];
$myslug = substr($slug, 4);
$new_slug = chop($myslug,"?lang=fr");
I have the PHP code below, so my question is how can I refine it?
$slug = $_SERVER['REQUEST_URI'];
$myslug = substr($slug, 4);
$new_slug = chop($myslug,"?lang=fr");
Copyright © 2021 Jogjafile Inc.
You could eliminate all those variables.