Thank you !
This is the right answer !
Hereunder please find the working example:
function trimm(&$value){
$value = rtrim($value);
$value = ltrim($value);
}
$osoby = array("John ", "Marry", " Andrew", " Bob ")
reset($osoby);
array_walk($osoby, 'trimm');
The after code execution array $osoby will contain: "John", "Marry", "Andrew", "Bob".
That means leading blank spaces were trimmed.
Thank you once again Michael!
Ziggi