Welcome! Log In Create A New Profile

Advanced

IF Statement (relatede to life0

Posted by solomzi mkhela 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
IF Statement (relatede to life0
April 24, 2013 11:19PM
Lets assume that me and my friends are planning
to go for movie I need more than 20 bucks to go to
the movies, If I have less than 20 bucks I can't
go,My programme would be like this
Language: PHP
$money=15; if($money>20) { echo"Hey we can go to the movie we have $money bucks"; } Else { echo "Oops we can';t go to the movie we have only $money bucks';; }

78009855
avatar Re: IF Statement (relatede to life0
April 26, 2013 09:33AM
Language: PHP
$money=15; if($money>20) { echo"Hey we can go to the movie we have $money bucks"; } Else { echo "Oops we cannot go to the movie we have only $money bucks"; }
***can't*** will give you problems rather use escape character

gbakamela [77234715]
avatar
Mac
Re: IF Statement (relatede to life0
April 26, 2013 11:35AM
If echo is using double quotes, then no need to escape.
Re: IF Statement (relatede to life0
May 05, 2013 09:53PM
ok Mac

78009855
Sorry, only registered users may post in this forum.

Click here to login