Jump to content

How to say it in php ! (if and else)


egturnkey

Recommended Posts

Hello friends,

 

If i have

 

$manal = "40";

 

and i wanna create random number btween 1 to 100

 

$random = rand(1, 100);

* not sure it is right or wrong for random function

 

then if we have text_1 / text_2

 

i wanna say

 

if $random >= $manal  then show text_1

 

if else ( i mean $random < $manal ) then show text_2

 

i how write it in php so can anyone fix it to me and write it  :shrug:

Link to comment
https://forums.phpfreaks.com/topic/195132-how-to-say-it-in-php-if-and-else/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.