Explain converting an object?



Explain converting an object?..

Answer / Viddhotma

To convert a PHP object to an array, you can use the json_encode() function with JSON_FORCE_OBJECT flag. Converting an object to a string is done using the serialize() function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is array and function?

1 Answers  


What is the difference between explode and split?

1 Answers  


Is echo a function in php?

1 Answers  


Explain the installation of PHP on UNIX systems?

1 Answers  


How to get the number of characters in a string?

1 Answers  


Who is the father of PHP and explain the changes in PHP versions?

15 Answers   ADISoft Tech, Genpact, PropTiger, TWA,


Which is not a file-related function in php?

1 Answers  


What is overloading in php?

1 Answers  


what will do ceil() and floor() in PHP?

5 Answers  


What is include in php?

1 Answers  


Explain what is the main difference between require() and require_once()?

1 Answers  


I finished my degree 4 years back. I didnt get job in software. In the time(for 4 years) i worked one kpo industries. but now i got job in php(40 employes working there) as fresher(Salary 8000). Shall i join in php. I have no knowledge about php. Can i do well in php. How will my carrier if i join in php? Please can you give your idea.? It will be more usefull to me.

2 Answers  


Categories