Search results

  1. S

    Variable declaration in php (is it necessary to declare empty variable?)?

    hi.. i've been wondering.. is it really necessary to declare a variable in php? for example, if we declare a variable within a loop and condition, later on, the variable could be out of scope and may not exist.. so, a check is required.. eg: for($i=0; $i<10; $i++){ if($i==7){ $found="yes"...
Back
Top