mardi 29 septembre 2015

I am trying to use substr to extract the part of the array element value with a if-else statement

I am really new to PHP and am having some trouble on how to output this.

$employee_numbers = array( "Sam Jerry"=>"1849", "David Flint"=>"2274", "Lena Vincent"=>"2532", Robert Vanny"=>"3471" );

I am trying to output it so that the substr shows the Name and number.

So it looks something like this

Sam Jerry's employee number is: 1849 --> MANAGEMENT

Thanks in advanced

Aucun commentaire:

Enregistrer un commentaire