Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!

paulosanito williams

Greenhorn
+ Follow
since Oct 17, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by paulosanito williams

QUESTION :

$host = ltrim($_SERVER['REQUEST_URI'], '/');

this remove prefix “/” from URL

i also need the suffix “?page=*” removed

eg :

/city?page=4 becomes city

/sydney?page=444 becomes sydney

etc
2 days ago
PHP