note 120032 added to function.var-dump

From: Date: Wed, 12 Oct 2016 23:04:29 +0000
Subject: note 120032 added to function.var-dump
Groups: php.notes 
Request: Send a blank email to php-notes+get-206867@lists.php.net to get a copy of this message
<?php function var_dump_new($input) { $inp = gettype($input); if ($inp == "double") { $inp = "float"; } echo ucfirst($inp); $inp = (string) $input; $inp = strlen($inp); echo "(" . $inp . ") "; if (gettype($input) == "string") { $show = '<lable style="color:green;">"' . $input . '" </labale>'; } else if (gettype($input) == "integer") { $show = '<lable style="color:red;">' . $input . " </labale>"; } else if (gettype($input) == "double") { $show = '<lable style="color:#0099c5;">' . $input . " </labale>"; } else if (gettype($input) == "boolean") { if (gettype($input) == 1) { $input = "TRUE"; } else { $input = "FALSE"; } $show = '<lable style="color:#92008d;">' . $input . " </labale>"; } echo $show; } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 196.53.43.76 ---- Manual Page -- http://php.net/manual/en/function.var-dump.php Edit -- https://master.php.net/note/edit/120032 Del: integrated -- https://master.php.net/note/delete/120032/integrated Del: useless -- https://master.php.net/note/delete/120032/useless Del: bad code -- https://master.php.net/note/delete/120032/bad+code Del: spam -- https://master.php.net/note/delete/120032/spam Del: non-english -- https://master.php.net/note/delete/120032/non-english Del: in docs -- https://master.php.net/note/delete/120032/in+docs Del: other reasons-- https://master.php.net/note/delete/120032 Reject -- https://master.php.net/note/reject/120032 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206867) next »