note 110215 added to function.echo

From: Date: Mon, 01 Oct 2012 17:20:44 +0000
Subject: note 110215 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-191092@lists.php.net to get a copy of this message
Echo is a basic php command. If you are reading this page, you are likely new to php. When I was just beginning to learn php, I missed the ability to popup message boxes to myself with, for example, the contents of variables. Try this: <?php function debug_popup($title, $arg) { echo '<script>alert("{ '.$title.' } ==> [ '.$arg.' ]");</script>'; } ?> USAGE EXAMPLE: <?php $my_Var = 164 + 372; debug_popup("Value of my_Var", $my_Var); ?> or <?php debug_popup('Beginning of script', 'I am here'); ?> ---- Server IP: 216.235.13.26 Probable Submitter: 70.66.153.18 ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- https://master.php.net/note/edit/110215 Del: integrated -- https://master.php.net/note/delete/110215/integrated Del: useless -- https://master.php.net/note/delete/110215/useless Del: bad code -- https://master.php.net/note/delete/110215/bad+code Del: spam -- https://master.php.net/note/delete/110215/spam Del: non-english -- https://master.php.net/note/delete/110215/non-english Del: in docs -- https://master.php.net/note/delete/110215/in+docs Del: other reasons-- https://master.php.net/note/delete/110215 Reject -- https://master.php.net/note/reject/110215 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191092) next »