note 113893 deleted from language.types.intro by salathe
| From: | salathe@php.net | Date: | Tue, 05 Aug 2014 11:27:54 +0000 |
| Subject: | note 113893 deleted from language.types.intro by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200110@lists.php.net to get a copy of this message | ||
Note Submitter: Zeeshan Karamat Abbas
----
In languages like JAVA, we usually have to define the variable data types as well while declaring
them but in PHP, we don't have to define the type of the variable while declaring it. Just give
a variable any value. For example, we have variable $myFolks. You can set its value as under, say to
a string:
$myFolks = "Hossayn opposed Tyranny of Yazid."
And then you can call it or print it and while doing so, you don't have to mention its data
type. Afterwards, you can change data type as well:
$myFolks = 5+12+14
Or just $myFolks = TRUE