note 113893 added to language.types.intro

From: Date: Fri, 13 Dec 2013 18:09:00 +0000
Subject: note 113893 added to language.types.intro
Groups: php.notes 
Request: Send a blank email to php-notes+get-197929@lists.php.net to get a copy of this message
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 ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.types.intro.php Edit -- https://master.php.net/note/edit/113893 Del: integrated -- https://master.php.net/note/delete/113893/integrated Del: useless -- https://master.php.net/note/delete/113893/useless Del: bad code -- https://master.php.net/note/delete/113893/bad+code Del: spam -- https://master.php.net/note/delete/113893/spam Del: non-english -- https://master.php.net/note/delete/113893/non-english Del: in docs -- https://master.php.net/note/delete/113893/in+docs Del: other reasons-- https://master.php.net/note/delete/113893 Reject -- https://master.php.net/note/reject/113893 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197929) next »