PHP Data Types

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

09-Jun-09 00:00
This is a forum topic for discussing the article "PHP Data Types":

http://www.elated.com/articles/php-data-types/

Lists and explains all PHP data types, and shows how to read and change data types. Also looks at PHP's loose typing.
13-Oct-12 11:29
Thank you. very much helpful

--
@nothingchen
17-Jul-17 02:18
Objects are also a type of data in PHP, but it is not mentioned in this article. Arrays and function are some examples of an Object. Here is how a new Object is created.

$car = new ferrari();

Source: https://www.cloudways.com/blog/php-data-types-and-variable-concepts/
17-Jul-17 05:24
Objects are [b]NOT really[b] data 'types' which is why they are not covered as simple data 'types'

'Objects' are an abstract structure of variables which are containers of scalar data types, arranged as an associative array

PLUS;

" but it is not mentioned in this article."

Had you actually read the article all the way through you would have found arrays and objects covered in the section headed with

"PHP's compound data types"

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/

 
New posts
Old posts

Follow Elated