2009-11-13, 12:49 AM
Thanks for the fast response! I am still confused. If I understand correctly adding the "_r" to the print, outputs everything. So it makes sense to use echo or print.
So would change it from this
$data = $MyBBI->getUser(2);
print_r($data);
to this?
$data = $MyBBI->getUser(2);
print ($data);
When I tried the last one it just outputs the text "Array"
How would I call the individual item I want? Am I able to change the data variable to say "$postnum" or something? Or would I add something in here like
getUser(2, postnum)
Thanks for helping me. I wish I new more about PHP. Trying to learn it all
So would change it from this
$data = $MyBBI->getUser(2);
print_r($data);
to this?
$data = $MyBBI->getUser(2);
print ($data);
When I tried the last one it just outputs the text "Array"
How would I call the individual item I want? Am I able to change the data variable to say "$postnum" or something? Or would I add something in here like
getUser(2, postnum)
Thanks for helping me. I wish I new more about PHP. Trying to learn it all