• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in array

 
Aniket S. Kulkarni
Ranch Hand
Posts: 87
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!!

I need help on array.

Code:


Output:= 1234Array

I know $data is array it is not variable, but if I print as variable($data) result is Array. Why?

[Edit - added code tags - MB]
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pirnt just show you the variable type in case of array, and php has another function to print the array. print_r ($data);
 
Aniket S. Kulkarni
Ranch Hand
Posts: 87
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!!!
I tried print_r($data); it is nice. It reduces overhead of writing each array element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic