Re: How can I replace $_SERVER["DOCUMENT_ROOT"] in PHP 7.0?

From: Date: Wed, 15 Sep 2021 09:03:05 +0000
Subject: Re: How can I replace $_SERVER["DOCUMENT_ROOT"] in PHP 7.0?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-327693@lists.php.net to get a copy of this message
Does it matter if I use $_SERVER["DOCUMENT_ROOT"] rather than $_SERVER['DOCUMENT_ROOT'] In the code I am struggling with it uses double quotes rather than single quotes as you show here,
No. There's no practical difference between single and double quotes here. The only difference between single and double quotes is that double quotes allow the use of variables and escape sequences (single quoted strings only parse the \\ and \' escape sequences) See: https://www.php.net/manual/en/language.types.string.php

« previous php.general (#327693) next »