Linked Questions

-2 votes
1 answer
110 views

stdClass Object ( [CountyId] => 3 [Name] => Alba [Abbreviation] => AB ) stdClass Object ( [CountyId] => 4 [Name] => Arad [Abbreviation] => AR ) stdClass ...
Soptareanu Alex's user avatar
658 votes
41 answers
746k views

Quite often I will try and run a PHP script and just get a blank screen back. No error message; just an empty screen. The cause might have been a simple syntax error (wrong bracket, missing semicolon),...
Candidasa's user avatar
  • 8,740
158 votes
14 answers
459k views

I fetch post_id from postmeta as: $post_id = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE (meta_key = 'mfn-post-link1' AND meta_value = '". $from ."')"); when i try print_r($...
Dinesh's user avatar
  • 4,114
0 votes
2 answers
2k views

I fetched data from table 'auction' $players = DB::table('auction')->where('id',$id)->get(); I'm getting the data in this form [ { "id": 3, "name": "Yogesh Singh", "year": "BE", ...
Yogesh Kumar Singh's user avatar
0 votes
1 answer
2k views

Using var_dump from an API call give me the output like this How to put them into an array? thanks
Tsabit A. Aziz's user avatar
-1 votes
1 answer
1k views

I get data array make me confuse like this: { "error":0, "productcount":"1", "page":1, "totalpage":1, "result":[sorry hidden cust request] } I want to convert it to html table, how ? ...
Hengky ST's user avatar
  • 195
-1 votes
4 answers
1k views

I have a string = "Name":"Susan","Age":"23","Gender":"Male"; How to store them in an array so that I can echo the value for example: echo $array['Name'] or echo $array['Age'] Thanks
sudaila's user avatar
0 votes
1 answer
1k views

I wanted to pass the result of the executed stored procedure to my PB.vue But the problem is, it's giving me an error saying: Call to a member function first() on array public function index() { ...
koko_dump's user avatar
0 votes
2 answers
955 views

I am creating a webservice in moodle and want to return my std object as a JSON, public static function add_attendance_lti($attendanceObject) { ...... $lti_updated = [ 'id' => $...
Syed Saad Ullah Shah's user avatar
0 votes
1 answer
1k views

I have some simple PHP code that formats an object containing information about some songs. I try and sort this information using usort(), but I can't quite get the sorting to work correctly. print_r(...
Obsidian Age's user avatar
  • 42.5k
0 votes
2 answers
718 views

I have made function to display all my privileges against the menu. My controller code is below: <?php class PrivilegesController extends Controller { public function ...
syed1234's user avatar
  • 833
-2 votes
2 answers
486 views

I have a variable, $result, that hold the following: object(stdClass) #1 (1) { ["response"]= > object(stdClass) #2 (6) { ["status"]= > string(2) "OK" ["count"] => int(1) ["...
Cody Raspien's user avatar
  • 1,893
4 votes
2 answers
158 views

I'm trying to read the returned json below but i keep getting errors. Cannot use object of type stdClass as array I'm fetching the json via curl and then json_decode($data); foreach($array as $a) { ...
J.Adams's user avatar
  • 133
0 votes
1 answer
680 views

When I am using laravel Collection & DB query pagination. getting the following error. new UserCollection(DB::table('users')->paginate()); I am using elequent pagination as follows, new ...
shihabudheen's user avatar
0 votes
5 answers
148 views

I am using woocommerce 2.6 now on woocommerce 3.0 output of $item->get_items has changed from Array to Objects. I want to convert object std class to array by key name to fetch data. Below is ...
Kuanl's user avatar
  • 23

15 30 50 per page