I have a url that will look as follows.
post/:id
I am exploding the $_SERVER['REQUEST_URI']
;
and I need to make the $uri[2]
is numerical so I can do things like
$next = $uri[2]++;
I have tried is_numeric
but of course the request_uri
is a string (broken into an array of strings).
Can I type cast in php to integer?