Parsing the json response in PHP [duplicate]

102
February 11, 2018, at 06:26 AM

This question already has an answer here:

  • PHP: How to access array element values using array-index 2 answers
  • How can I access an array/object? 4 answers
  • Accessing associative arrays in PHP 2 answers
  • PHP: Accessing array variables 5 answers
  • PHP how to retrieve array values 3 answers

I am trying extract name and sign from this json response using PHP.

My response:

Array ( 
    [0] => 
        Array ([id] => 0 [name] => Sun [fullDegree] => 249.64852193968 [normDegree] => 9.6485219396751 [speed] => 1.0184776069255 [isRetro] => false [sign] => Sagittarius [signLord] => Jupiter [nakshatra] => Mool [nakshatraLord] => Ketu [nakshatra_pad] => 3 [house] => 2 [is_planet_set] => [planet_awastha] => Kumara 
    ) 
    [1] => Array ( [id] => 1 [name] => Moon [fullDegree] => 90.224161658349 [normDegree] => 0.22416165834936 [speed] => 12.792963507107 [isRetro] => false [sign] => Cancer [signLord] => Moon [nakshatra] => Punarvasu [nakshatraLord] => Jupiter [nakshatra_pad] => 4 [house] => 9 [is_planet_set] => [planet_awastha] => Mrit 
    )
) 
READ ALSO
How to add space after comma in php

How to add space after comma in php

In my database the city and state are written like this: (Miami, fl)Now I have an input where you can search for the city and state

524
Vuejs Component to display after submission

Vuejs Component to display after submission

I am trying to display post after submission in vuewhen the form submitted the returned is pushed to the bottom if I push(), but when I use unshift() nothing display

145
how to change html text to logo on hover

how to change html text to logo on hover

I can't seem to find a solution that works online so I thought I would ask on hereSo, I want to have my page menu to display my logo when I hover over it

41
BeautifulSoup: Saving changes back to HTML

BeautifulSoup: Saving changes back to HTML

I have the following Python code:

49