Jump to content

How do you CR/LF an array?


bilis_money

Recommended Posts

Hi i have this array codes below,

 

<?php

print_r(apache_get_modules());

?>

 

what i want is to format the output so that it will look like this below,

 

Array

(

    [0] => core

    [1] => http_core

    [2] => mod_so

    [3] => sapi_apache2

    [4] => mod_mime

    [5] => mod_rewrite

)

 

and not this one below,

Array([0] => core[1] => http_core[2] => mod_so[3] => sapi_apache2

    [4] => mod_mime[5] => mod_rewrite)

 

how?

 

thank you in advance.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/64285-how-do-you-crlf-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.