How can I remove the string "Array" in the printout from print_r()?
I have tried using string replace, but it didn't work.
Example output:
Array (
[0] => Array (
[id] => Classify318721363801824
[classification] =>
Array (
[0] => Array (
[Klasifikasi] => NonOpini
[Nilai] => 0.999946 )
[1] => Array (
[Klasifikasi] => Opini
[Nilai] => 5.43418e-005 ) )
var_dumporvar_export?print_r()TRUE as the second argument, thereby causing it to output rather than return a string?print_r()for actual user facing output? Its purpose is debugging.print_r()with return flag and replace whatever u want. If you need something more complex to do with array elements, then you should write a recursive function to walk through your array and handle with it.