Problem Description
is there any simple way to create new array with extra value ?
$table->data = array(
array('Harry Potter', '76%', 'Getting better'),
array('Rincewind', '89%', 'Lucky as usual'),
array('Elminster Aumar', '100%', 'Easy when you know everything!')
);
**Result expecting like this**
$table->data = array(
array('Harry Potter', '76%', 'Getting better', '<a href="more.php">View</a>'),
array('Rincewind', '89%', 'Lucky as usual', '<a href="more.php">View</a>'),
array('Elminster Aumar', '100%', 'Easy when you know everything!', '<a href="more.php">View</a>')
);
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?