note 129139 added to language.types.mixed
| From: | andre_ranulfo at hotmail dot com | Date: | Thu, 04 Jan 2024 00:51:07 +0000 |
| Subject: | note 129139 added to language.types.mixed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221093@lists.php.net to get a copy of this message | ||
<?php
// Declare a variable with an initial string value
$mixedVariable = 'foo';
// Display the initial value and its type
echo "Initial Value: $mixedVariable (Type: " . gettype($mixedVariable) .
")<br>";
// Change the value to an integer
$mixedVariable = 42;
// Display the new value and its type
echo "New Value: $mixedVariable (Type: " . gettype($mixedVariable) .
")<br>";
// Change the value to a boolean
$mixedVariable = true;
// Display the final value and its type
echo "Final Value: $mixedVariable (Type: " . gettype($mixedVariable) .
")<br>";
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 2804:14d:5c83:8b85:7113:11c:41a9:fa8f)
----
Manual Page -- https://php.net/manual/en/language.types.mixed.php
Edit -- https://main.php.net/note/edit/129139
Del: integrated -- https://main.php.net/note/delete/129139/integrated
Del: useless -- https://main.php.net/note/delete/129139/useless
Del: bad code -- https://main.php.net/note/delete/129139/bad+code
Del: spam -- https://main.php.net/note/delete/129139/spam
Del: non-english -- https://main.php.net/note/delete/129139/non-english
Del: in docs -- https://main.php.net/note/delete/129139/in+docs
Del: other reasons-- https://main.php.net/note/delete/129139
Reject -- https://main.php.net/note/reject/129139
Search -- https://main.php.net/manage/user-notes.php