Как решить эту проблему, я не знаю. уверены, проблема связана с моим CSV-файлом или с моим кодом?
Вот часть условного ЕСЛИ:
Код: Выделить всё
//$val[1] is value with leading zero (mostly)
//$param1 is from input form (here I use CI $this->input->post('reg-num');
if($val[1] == $param1){ //
//some logic go here;
// THE PROBLEM is HERE; as for example: I input both 0012345 and 12345 into the form, then,
echo $val[1]; //the output is 0012345 from two condition. Why is that happen?
}
Код: Выделить всё
if($val[1] == $param1){ //
//some logic go here;
// as for example: I input both 0012345 into the form, then,
echo $val[1]; //the output is 0012345 but if I input 12345 it outputs "False" or another logic
}
Подробнее здесь: https://stackoverflow.com/questions/783 ... -precisely