samedi 29 septembre 2018

What does substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], dirname(__FILE__))) mean in php?

While studying php, I found the source code below.

substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], dirname(__FILE__)));

I ran this and it came out with ''(empty string).

What does this mean?




Aucun commentaire:

Enregistrer un commentaire