Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP difference between $message and $$message

Have Programming Question? Ask it here!
 
 
 


Java Coder
difference between $message and $$message
1 Answer(s)      3 years and 8 months ago
Posted in : PHP


What is the difference between $message and $$message?


Advertisement
View Answers

December 27, 2010 at 1:36 PM


Hi friends,

$message is a simple variable whereas $$message is a reference variable. Example: $name = 'Bharat';

is equivalent to

$str = 'name'; $$str = 'Bharat';

Example:

<html>
<head>
<title>First PHP Example </title>
</head>
<body>
<?php

/*----------------- First -----------------*/
$name="bharat";
echo $name;
echo "<br>";

/*-----------------Second -----------------*/
$str = 'name';
echo $str;
echo "<br>";
$$str;
echo  $$str;
?>
</body>
</html>

Thanks.



Related Tutorials/Questions & Answers:
difference between $message and $$message
difference between $message and $$message  What is the difference between $message and $$message?   Hi friends, $message is a simple variable whereas $$message is a reference variable. Example: $name = 'Bharat
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
Advertisements
message passing
message passing  how message is passed using jade technology
message box
message box  How to show the message "invalid username and password" after redirecting the page to the login form
Java Message Services - JMS
Java Message Services  What is Java Message Services
Objective C Message Passing
Objective C Message Passing  What exactly a message passing means in Objective C? and how can i pass a message to a method
Message Resource Bundle work.
Message Resource Bundle work.  How does Value replacement in Message Resource Bundle work
Message Context in AXIS
Message Context in AXIS  Is there any method in Axis classes to het the size of IN and OUT Message Conetext
Javascript alert message
Javascript alert message   How to send an alert message to a user in JavaScript
javascript dom error-message
javascript dom error-message  javascript dom error-message
how to send message
how to send message  how to send message for mobile in server
websphere message broker - WebSevices
websphere message broker  how can i find the heapsize of the execution group in the message broker using command console syntax
soap message console - WebSevices
soap message console  hi friends i have one doubt that is iam using MyEclipse 6.0 in that how do i get soap message console
GETTING ALERT MESSAGE
GETTING ALERT MESSAGE  how to get an alert message when radio button is selected instead of checkbox
message driven bean example
message driven bean example  can any one tell me how to develop and execute ---------- j2ee message driven bean example in weblogic server with (netbeans or eclipse).   Have a look at the following link: http
GETTING AN ALERT MESSAGE
GETTING AN ALERT MESSAGE  how to get an alert message, if i select radio button instead of checkbox(associated with 3 dropdown list
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page.... The code errorPage="errorPage.jsp" forwards the exception message
A Message-Driven Bean Example
A Message-Driven Bean Example   ... messages asynchronously,  a Message-driven bean is used. Message driven..., email or IM messages). In message driven beans, the messaging service
validation message - Struts
validation message  sir, i took help of that example but in that we change only color of the message i want to shift the place of the error message.means all messages are put together at top of the form
pop up message in java
pop up message in java  hii..i have developed an application in which a login and registration form is there.when the registration is done the user... an automatic message to change the password.how is it done??the forms are done using java
Java Message Services
. JMS Message: An object that contains the data being transferred between... Java Message Services      ... for developing programs using it. The java message services API is a java Message oriented
Message Driven Beans
Message Driven Beans       Message driven beans are the light weight components used for communication. In message driven beans the messaging service is in asynchronous mode because
error message - Java Beginners
error message  sir, while i m trying to execute my first program(print my name)I get error message like" javac is not recognized as internal or external ...blah..blah..or batch file".even i hav tried setting the path variable
Java message services
; Java Message Services In this section, you will read about the java... and offers the basics for developing programs using it. The java message services API is a java Message oriented Middleware API for sending successfully the messages
Ejb message driven bean
.style1 { color: #FFFFFF; } Ejb message driven... you the process which are involved in making a message driven bean using EJB...; For developing the message driven bean we are using both the EJB module and web
Difference between DispatchAction and LookupDispatchAction
Difference between DispatchAction and LookupDispatchAction  What is the Difference between DispatchAction and LookupDispatchAction
difference between SessionState and ViewState
difference between SessionState and ViewState  What is the difference between SessionState and ViewState
difference between ForwardAction and IncludeAction
difference between ForwardAction and IncludeAction  What is the difference between ForwardAction and IncludeAction
Difference between struts and JSF
Difference between struts and JSF  What is the difference between struts and JSF
difference between == and === operators?
difference between == and === operators?  Is (====) operator available in java or not? difference between
cfstring release message sent to deallocated
cfstring release message sent to deallocated  cfstring release message sent to deallocated What is this message?? i know it occurs due to memory release. But can anyone tell me how to track and rectify
to retrieve message body - Java Beginners
to retrieve message body  hi, Using dbfile system to store message using mysql. dbfile system is to store headers in database and message body in file system . i retrieved message contents like from :, to :, delivered
difference between varchar & varchar2?
difference between varchar & varchar2?  What is the difference between varchar & varchar2
Difference between 3d and 4d
Difference between 3d and 4d  what is the difference between 3d and 4d
What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks
how to display the email message in jsp
how to display the email message in jsp  hi every one .. i am new from this industry please help me to display the email message in jsp page please send me sample code
Replace JSF Standard Error Message
Replace JSF Standard Error Message  How can we replace the JSF Standard Error Message
Java Message Box - Java Beginners
Java Message Box  I want to display the variable value in message box...); But the message box display nothing. Is there any way to display the value of s in message box. Please help me as soon as possible.  Hi
Sending message using Java Mail
Sending message using Java Mail        This Example shows you how to send a message using javamail api. A client create new message by using Message subclass
XML error message: The reference to entity
XML error message: The reference to entity   XML error message: The reference to entity "ai" must end with the ';' delimiter. Im getting this error when i gotta edit my blogger template Please advice manjunath
Missing message for key tenant.lbl - Struts
Missing message for key tenant.lbl  I have properties file with key value pair.I am trying to get that value int jsp by using tag.In struts-config.xml I placed below code still I am getting Missing message for key tenant.lbl.
Error Message in Eclipse - Development process
Error Message in Eclipse  Hi Friend, My changes... option is not working in Eclipse. Am getting error message while saving. Now save button is invalid.I forgot that error message. Something like workbench error
Changing the message box to a specific color
Changing the message box to a specific color  How do you change the message box color to a specific color? I can get the color to change with each... the message box to red but its not really working. Can you help me
retrieve message contents - Java Beginners
retrieve message contents   hi , dbfile system to store message headsers in mysql database and message contents in file system . how to retrieve message contents. thanks bala..   Hi friend, Content
Difference between Mysql and SQL
Difference between Mysql and SQL  hello, What is the difference between Mysql and SQL??   hii, SQL is structural quary language but mysql is database package
Difference between Timer and Thread?
Difference between Timer and Thread?  Can anyone tell me about the difference between Timer and Thread, Why we need to have Timer in case we have Thread implimentation startegy in Java
confirm message box - Java Beginners
confirm message box  How can I create a confirm message with Yes and No button instead of OK/Cancel buttons in java script inside a jsp?   ... Title', 'My Confirm Message', 2,0,0) if (retVal==true) return true; else
Message Box Java
In this section we will create a message box in Java using a Java API class. A certain message, warning or information can be displayed in this message box. Generally the message box is used to display error message. JOptionPane class
JSF message Tag
JSF message Tag      In this section we will explain you JSF message tag. This is used to display the most recent message for the component. This is used to show the message
Java Message Box
Java Message Box In this tutorials you will learn about how to create Message Box in Java. Java API provide a class to create a message Box in java. By message box we mean a box in which message is displayed or a box from which input
Advertisements
 

 

 

DMCA.com