get value from stored procedure in php
If you need to send the object as text to somewhere else (database, Javascript code), you have a choice of serialize, json_encode, XML conversion, and many more, depending on your exact situation.
Try this:
$query=$this->db->query("select test(\"$begin\",\"$end\", \"$code\")")->result();// Cast object to array (also you can try get_object_vars() to do that)$query = (array)$query[0];// Get the last value from array (it the only on so it is OK)echo end($query);
Perhaps will help..