Jump to content
#StayAtHome ×

kutchbhi

Members
  • Content Count

    22
  • Joined

  • Last visited

Posts posted by kutchbhi


  1. For now don't worry about JSON. The following converts JSON into a regular PHP array. An array which has more arrays inside it  ( Multidimensional  array)

    //convert json object to php associative array
    $data = json_decode($jsondata, true);

    Simple explanation: For an array

        $carsArr = array(
            array("Volvo", 22, 18),
            array("BMW", 15, 13),
            array("Saab", 5, 2),
            array("Land Rover", 17, 15)
        );
    

    $carsArr[0] - first item in the array .
    Basically $carsArr[0] is equal to ("Volvo", 22, 18)

    Now $carsArr[0][1] would be the second item of $carsArr[0] . That is  '22' here.
    $carsArr[0][0] would be the - "Volvo "

     

    And so on


  2. Trying to deeply learn about - dependency injection / factories and other software engineering concepts.

    My Goal is to architecture my apps better, by writing modular components.

     

    I can find plenty of blog posts and random videos about learning these, but It would be great if someone can suggest a proper video series or book for this. Or please just suggest what/where can I search for finding a course for this. As in does this land under 'design patterns  ' , 'software architecture' or something else ?

     

    Any help ?

     

    Thanks 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.