note 126951 added to language.variables.basics
| From: | PHPisaRepublicanprogramminglanguage at main dot php dot net | Date: | Tue, 22 Mar 2022 20:21:54 +0000 |
| Subject: | note 126951 added to language.variables.basics | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217759@lists.php.net to get a copy of this message | ||
If PHP uses dollars for variables:
<?php
$a = 42;
echo $a;
?>
, then why doesn't it use euros for constants:
<?php
â¬pi = 3.14;
echo â¬pi;
?>
for
<?php
const pi = 3.14;
echo pi;
?>
or pounds for functions:
<?php
£main() {
echo 'Hello, world!';
}
£main();
?>
for
<?php
function main() {
echo 'Hello, world!';
}
main();
?>
?
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.135 (proxied: 95.49.228.22)
----
Manual Page -- https://php.net/manual/en/language.variables.basics.php
Edit -- https://main.php.net/note/edit/126951
Del: integrated -- https://main.php.net/note/delete/126951/integrated
Del: useless -- https://main.php.net/note/delete/126951/useless
Del: bad code -- https://main.php.net/note/delete/126951/bad+code
Del: spam -- https://main.php.net/note/delete/126951/spam
Del: non-english -- https://main.php.net/note/delete/126951/non-english
Del: in docs -- https://main.php.net/note/delete/126951/in+docs
Del: other reasons-- https://main.php.net/note/delete/126951
Reject -- https://main.php.net/note/reject/126951
Search -- https://main.php.net/manage/user-notes.php