array
(
'head' => "Birth and Early Years",
'text' => array
(
"Jason A. Cloud was on <a href=''>Bellona</a>, Prime Hospital, to <a href='index.php?action=crew&id=6IVX20'>Issabelle</a> and <a href='index.php?action=crew&id=SPM33Q'>Jason Cloud</a> on ",
"Jason A. Cloud was born on
<a href='#' ",(file_exists('file_1.php') ? "class='pass'" : "class='fail'" )," >Bellona</a>, Prime Hospital, to
<a href='#' ",(file_exists('file_2.php') ? "class='pass'" : "class='fail'" ),">Issabelle</a> and
<a href='#' ",(file_exists('file_3.php') ? "class='pass'" : "class='fail'" )," >Jason Cloud</a> on ....... ",
),
),
),
Problem: Once I exit the Array value before the Ternary, it is being counted as if I was done with that value, how do I stay in value, but still check if the file is created?
I need it to check if the file exists, and give pass/fail class to show if the link goes anywhere.
New contributor
Lee Wright is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1