note 110215 rejected from function.echo by googleguy

From: Date: Wed, 03 Oct 2012 02:30:31 +0000
Subject: note 110215 rejected from function.echo by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191106@lists.php.net to get a copy of this message
Note Submitter: JDaly at example dot com ---- 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'); ?>

« previous php.notes (#191106) next »