Jump to content

Simple Questions (related to previous problem)


robert_gsfame

Recommended Posts

<?php

$name = 'FINANCE MANAGER (FM)';

$split = explode(' ', $name);

foreach($split as &$part)

{

 

$part = ($part{0} != '(') ? ucfirst(strtolower($part)) : $part;

}

$name = implode(' ', $split);

echo $name;

 

I just want to know what ($part{0} refers to ??? and &$part  ===> what "&" use for?? thank you. i'm still newbie lOl

 

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.