Jump to content

Recommended Posts

I have a forum that is included on my site via SSI. There is a function provided that allows me to pull in the Member name (based on a member id) - and I can print the array of profile information. I need to format and display this information and I don't know how to do that... can anyone point me in the right direction? BTW, I cannot add anything to the function... Thank you!

 

Array
(
   [13] => Array
    (
	    [username] => laural
	    [name] => laural
	    [id] => 13
	    [is_buddy] =>
	    [is_reverse_buddy] =>
	    [buddies] => Array
		    (
		    )
	    [title] =>
	    [href] => http://www.powerflexweb.com/pwf/forum/index.php?action=profile;u=13
	    [link] => laural
	    [email] => laura-long@nc.rr.com
	    [show_email] => no
	    [registered] => January 16, 2013, 02:14:18 pm
	    [registered_timestamp] => 1358363658
	    [blurb] =>
	    [gender] => Array
		    (
			    [name] =>
			    [image] =>
		    )
	    [website] => Array
		    (
			    [title] =>
			    [url] =>
		    )
	    [birth_date] => 0000-00-00
	    [signature] =>
	    [location] =>
	    [icq] => Array
		    (
			    [name] =>
			    [add] =>
			    [href] =>
			    [link] =>
			    [link_text] =>
		    )
	    [aim] => Array
		    (
			    [name] =>
			    [href] =>
			    [link] =>
			    [link_text] =>
		    )
	    [yim] => Array
		    (
			    [name] =>
			    [href] =>
			    [link] =>
			    [link_text] =>
		    )
	    [msn] => Array
		    (
			    [name] =>
			    [href] =>
			    [link] =>
			    [link_text] =>
		    )
	    [real_posts] => 0
	    [posts] => 0
	    [avatar] => Array
		    (
			    [name] =>
			    [image] =>
			    [href] =>
			    [url] =>
		    )
	    [last_login] => January 16, 2013, 02:39:08 pm
	    [last_login_timestamp] => 1358365148
	    [karma] => Array
		    (
			    [good] => 0
			    [bad] => 0
			    [allow] =>
		    )
	    [ip] => 173.95.174.124
	    [ip2] => 173.95.174.124
	    [online] => Array
		    (
			    [is_online] =>
			    [text] => Offline
			    [href] => http://www.powerflexweb.com/pwf/forum/index.php?action=pm;sa=send;u=13
			    [link] => Offline
			    [image_href] => http://www.powerflexweb.com/pwf/forum/Themes/pwf/images/useroff.gif
			    [label] => Offline
		    )
	    [language] =>
	    [is_activated] => 1
	    [is_banned] =>
	    [options] => Array
		    (
			    [display_quick_reply] => 1
		    )
	    [is_guest] =>
	    [group] =>
	    [group_color] =>
	    [group_id] => 0
	    [post_group] => Newbie
	    [post_group_color] =>
	    [group_stars] => *
	    [warning] => 0
	    [warning_status] =>
	    [local_time] => January 18, 2013, 07:11:39 am
	    [has_messenger] =>
    )
)

Link to comment
https://forums.phpfreaks.com/topic/273312-how-to-style-php-function-array/
Share on other sites

There is no way you're going to format PHP's print_r output into something presentable to an end-user using css.  print_r is for debugging use only.  You need to be able to use PHP to get the information and format it that way.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.