Jump to content

[SOLVED] Really easy (for you, not me) problem with an array value.


ghostwalkz

Recommended Posts

Hi guys,

 

I have an array with various values. Now I can print a particular value to screen using:

 

print_r($data[$server_id]['hostname']);

 

which returns the hostname value inside the array. Perfect. BUT.....

 

How can I turn that value into a string.

 

I have tried $hostname = print_r($data[$server_id]['hostname']);

 

but it doesn't work.  Help would be greatly appreciated.  :)

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.