Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2006, 04:02 AM
Registered User
 
Join Date: Sep 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default difference between $message and $$message?

what is the difference between $message and $$message?
 
Old February 27th, 2007, 08:05 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to piyushhpatel
Default

$Message means simple variable store data.
$$Message means variable variable.
That is, a variable name which can be set and used dynamically
$Message = 'hello';

print $Message; // print hello

$$Message = 'world';

means $hello ='world';

now if u print $$Message;
menas $hello;// print world;

if u print $Message $($Message); // print hello world;



Piyush Patel
Software Engineer
Spacecom Technologies Ltd.
Mumbai
Cell : 9833859616





Similar Threads
Thread Thread Starter Forum Replies Last Post
error message. Tasha Access VBA 2 August 11th, 2004 11:07 PM
About Message formats abdul_owiusa C# 3 August 10th, 2004 12:46 PM
error message jokeshing SQL Server 2000 3 July 9th, 2004 05:15 AM
Error Message Louisa VB.NET 2002/2003 Basics 4 January 22nd, 2004 04:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.