Excuse me:
It gives you information about all "ls" in your system. But the problem may be in your mount options but I never work with hgfs. Sorry, here I can't help.
I have a TV and a monitor hooked up to my box. Right now the system is displaying all the information on the TV instead of the monitor, obviously I want to switch this, as the TV is very impracticle for everything other than watching movies.
I thought I remembered a command I used to use that... (2 Replies)
Hello All!
Where I work we have C3600's that have a video cards that have both DVI and Regular RBG type monitor ports on them. My question is: is it possible to spread my desktop across two monitors that are plugged into the one card much like you can do with NVIDIA software like NVIEW for... (0 Replies)
Hello. I have an AIX machine at 6100-00.
We had some strange activity since filling up /tmp. One symptom is that who -r displays no output. It doesn't hang just no output is displayed.
We are going to boot the machine, but prior to that I'd like to dig a bit to see what may be causing the... (0 Replies)
hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards.
I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Hi guys,
when I power on my sun netra 240 server,
it displays these error messages:
1. Notice: cpu 0 has 2048/2048 MB of memory disabled.
2. Error : The following devices are disabled dimm1.
Please can anyone be kind enough to explain this for me?
Thanks (2 Replies)
Hello there,
I'm using a read-while loop to preserve the word Failed within a text file. For example, if the word Failed exist twice in a single text file, my STDOUT should re-direct to a new text file and display Failed twice.
My output is attached to this thread. I would like output to... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies
LEARN ABOUT PHP
print_r
PRINT_R(3) 1 PRINT_R(3)print_r - Prints human-readable information about a variableSYNOPSIS
mixed print_r (mixed $expression, [bool $return = false])
DESCRIPTION print_r(3) displays information about a variable in a way that's readable by humans.
print_r(3), var_dump(3) and var_export(3) will also show protected and private properties of objects with PHP 5. Static class members will
not be shown.
PARAMETERS
o $expression
- The expression to be printed.
o $return
- If you would like to capture the output of print_r(3), use the $return parameter. When this parameter is set to TRUE, print_r(3)
will return the information rather than print it.
RETURN VALUES
If given a string, integer or float, the value itself will be printed. If given an array, values will be presented in a format that shows
keys and elements. Similar notation is used for objects.
When the $return parameter is TRUE, this function will return a string. Otherwise, the return value is TRUE.
NOTES
Note
When the $return parameter is used, this function uses internal output buffering so it cannot be used inside an ob_start(3) callback
function.
EXAMPLES
Example #1
print_r(3) example
<pre>
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>
</pre>
The above example will output:
<pre>
Array
(
[a] => apple
[b] => banana
[c] => Array
(
[0] => x
[1] => y
[2] => z
)
)
</pre>
Example #2
$return parameter example
<?php
$b = array ('m' => 'monkey', 'foo' => 'bar', 'x' => array ('x', 'y', 'z'));
$results = print_r($b, true); // $results now contains output from print_r
?>
SEE ALSO ob_start(3), var_dump(3), var_export(3).
PHP Documentation Group PRINT_R(3)