Welcome Guest, Not a member yet? Register   Sign In
how to use if condition in array variables?
#1

How to use if condition in array
Code:
$insert = array();
       $insert[] = array(
           'appno' => $appno,
           'regno' => $regno,
          'certid' => $certid,
             'amt' => if($certid=1,8500 else 300 ,
             'date' => $today
               );      
Reply


Messages In This Thread
how to use if condition in array variables? - by kvanaraj - 04-24-2019, 10:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB