Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 array the null key is not passed
#2

I tried your code and it is working just fine, the null value got displayed in my controller as in my model.
my php version is still 7.3.1
but I just install CI 4 so it is the latest 4.0.3
Did your code just that or did you use some library or anything else?

Code:
\app\Models\UserAuth.php:23:
array (size=1)
  0 =>
    array (size=13)
      'id_user' => string '1' (length=1)
      'email' => string '[email protected]' (length=13)
      'phone' => null
      'name' => null
      'last_login' => string '2020-06-24 02:18:37' (length=19)
      'last_ip' => string '::1' (length=3)
      'deleted' => string '0' (length=1)

\app\Controllers\Admin\Admin.php:13:
array (size=1)
  0 =>
    array (size=13)
      'id_user' => string '1' (length=1)
      'email' => string '[email protected]' (length=13)
      'phone' => null
      'name' => null
      'last_login' => string '2020-06-24 02:18:37' (length=19)
      'last_ip' => string '::1' (length=3)
      'deleted' => string '0' (length=1)
Reply


Messages In This Thread
RE: Codeigniter 4 array the null key is not passed - by inumaru - 06-23-2020, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB