example:
i have a variable with the value of "index.inc"
I want to remove the .inc from the end, so that the value is "index"
Im told substr() can do this, but when i use it like this:
Code: Select all
$file = substr("$viewFile", 0, -4);Can anyone help?