The following array when printed shows that the value of $career[2] is 2010-.
However no matter what I try, this if equation will not trigger. Can these array variables be different in some way?
echo $career[2];
if($career[2] == "2010-"){
$career = $career[1];
}
A print_r of the array $career reveals this..
Array (
[0] => BIS career
[1] => CEO of the corp
[2] => 2010-
[3] => Leader of R&D
[4] => 2005-10
);
VAR DUMP
array(11) {
[0]=> string(316) "BIS career "
[1]=> string(194) " CEO of the corp "
[2]=> string(163) " 2010- "
[3]=> string(160) " Leader of R&D "
[4]=> string(165) " 2005-10 " }