Home  >  Q&A  >  body text

Can you please help me change this code?

<?php
$x=Variable

if($x>10 && $x<100){

$y=1;

}else if($x>100 && $x<1000){

$y=2;
}else if($x>1000 && $x<10000){
$ y= 3;
}
According to the value of
Help change to standard PHP language

Help. Thank you,


强2397 days ago805

reply all(1)I'll reply

  • 小白

    小白2018-04-21 15:06:23

    <?php
    $x=11

    if($x>10 && $x<100){

    $y=1;

    }else if($x>100 && $x<1000){

    $y=2;
    }else if($x>1000 && $x<10000){
    $ y= 3;
    }
    According to the value of _blank">Open the page</a>Help change to standard PHP language


    ##

    reply
    0
  • Cancelreply