one quick question: how do I assign atring value into variable?
| From: | Jacky@lilst | Date: | Thu, 01 Feb 2001 17:33:08 +0000 |
| Subject: | one quick question: how do I assign atring value into variable? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37596@lists.php.net to get a copy of this message | ||
Folks,
The title is my question, how do I assign strign value into variables? Say , is the syntax below
correct?
if ($singleRooms==1) {
$roomType ='Single Room';
}elseif ($singleRooms==2) {
$roomType ='Double Room';
}else{
$roomType='Room Type not declared';
}
Jack
jacky@activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for yourself"