Skip to main content

All Questions

Tagged with
-1 votes
0 answers
20 views

understanding json_decode data [duplicate]

When I use json_decode and look at the results, I get a list of objects and arrays. I specifically want to retrieve one piece of information, but I'm not sure how to get it. I seem to have a stdClass ...
kenwat's user avatar
  • 1
0 votes
0 answers
20 views

PHP Deserialize JSON array and Get object name [duplicate]

how to get the object name? e.g: “XXX.HOSTNAME” $json = '{ "XXX.HOSTNAME": { "IP": "123.195.214.93", "IP6": "", "...
Tang Fusheng's user avatar
0 votes
3 answers
88 views

PHP Get the value of every occurrence of a key in a multidimensional array

How would you extract every value of a key regardless of how deep or shallow it is in an array. Here is a sample JSON array. I want to grab every occurrence of "content" and concatenate them ...
Walrus's user avatar
  • 20.3k
-1 votes
1 answer
41 views

PHP is array or single object?

I have simple php code: <?php $json = ' { "TrackResponse": { "Shipment": { "Package": { "TrackingNumber": "1Z7V015Y6870100000",...
ihorko's user avatar
  • 6,945
0 votes
1 answer
35 views

php - json_encoded string showing object format [duplicate]

I have an array with structure like - (checked with print_r statement) Array ( [0] => Array ( [ads] => 343443543 [ad_name] => Cup [cup_id] =>...
SandyK's user avatar
  • 475
0 votes
1 answer
64 views

How to search and remove specific position from array object? [duplicate]

I would like to search something in array of objects and remove the array position. For example, follow the array: $audits = [{"old_values":[],"new_values":[],"event":&...
Rodrigo Franco's user avatar
-1 votes
2 answers
73 views

How Update a data from an object of json type column in Laravel?

I have an object of json type column in my table (properties) in MySQL like: [ { "unit": "2", "floor": "1", "price": "...
Amranur Rahman's user avatar
0 votes
1 answer
102 views

Accessing object returned from GraphQL using curl

I have returned data using GraphQL / curl that looks like this: { "data" : { "publisher" : { "contracts" : { "totalCount" : 11, &...
jord49's user avatar
  • 572
0 votes
1 answer
110 views

Get Value from nested JSON File in PHP with Placeholder

I want to write my own little translation function. My JSON File looks like: { "start": { "body": { "headline": "Hello, world!" } } } In my PHP ...
Natali's user avatar
  • 71
0 votes
2 answers
31 views

I have this object and I need to remove the repeated rfcs from the catalog, how is it possible to do this?

I have this object in php: $object = [ [ {"catalogo": "C400047", "rfc_inf_aval": "CIS981002NK4", }, {"catalogo": "C140064&...
christian alvarez's user avatar
1 vote
2 answers
1k views

Want to return data in Json format by getting from database Object. Php Symfony

I am getting data from database model and want to return in json format, but it returns empty array, but when i use dump for variable that contains objects data then it return the actual data. Here is ...
Timothy's user avatar
  • 77
0 votes
2 answers
43 views

PHP accessing array object values [duplicate]

i have created bellow array businesscommercialArray = { 40E: { id: 94, swift_code: "40E", status: 1 }, 43P: { id: 106, swift_code: "43P", ...
kanishka kumarasiri's user avatar
0 votes
0 answers
19 views

Accessing/storing values from JSON serializeArray() in PHP [duplicate]

I give up. I'm sending form data to PHP via ajax using json.serializeArray(). In it's raw form it arrives like this: ["0":{ "name": "first_name", "value"...
Joseph P's user avatar
0 votes
0 answers
42 views

Create nested array/object from an array of strings by removing dots [duplicate]

I am trying to solve a problem. Can anyone help me with that? I have an array of strings as follows: $data = [ "name", "name.arun", "name.arun.bohra", "name.arun....
Arun Bohra's user avatar
0 votes
1 answer
44 views

Manipulate PHP stdClass output to have desired json format

I am getting dataset from a database query as object. What I want to do is to manipulate current output and create an additional array to store some of the output to have it compatible for my json ...
Pelin's user avatar
  • 457

15 30 50 per page
1
2 3 4 5
31