note 128327 added to language.types.intro
| From: | ponraj322002 at gmail dot com | Date: | Tue, 21 Mar 2023 04:54:58 +0000 |
| Subject: | note 128327 added to language.types.intro | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220285@lists.php.net to get a copy of this message | ||
<?php
$name="Ponraj";
echo get_debug_type($name); -> string
#This will produce an output as string . Php version below 8.0 dosenot contain this method.
#You can only use this method in 8.0 and above versions.
var_dump($name) -> string(6) Ponraj
$a = 10;
var_dump($a) -> int (10)
#var_dump() method prints a variable type and its value.
#But incase of string variable it prints the datatype and its length then print the value of
variable.
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 136.233.51.229)
----
Manual Page -- https://php.net/manual/en/language.types.intro.php
Edit -- https://main.php.net/note/edit/128327
Del: integrated -- https://main.php.net/note/delete/128327/integrated
Del: useless -- https://main.php.net/note/delete/128327/useless
Del: bad code -- https://main.php.net/note/delete/128327/bad+code
Del: spam -- https://main.php.net/note/delete/128327/spam
Del: non-english -- https://main.php.net/note/delete/128327/non-english
Del: in docs -- https://main.php.net/note/delete/128327/in+docs
Del: other reasons-- https://main.php.net/note/delete/128327
Reject -- https://main.php.net/note/reject/128327
Search -- https://main.php.net/manage/user-notes.php