Answer:
To get the last element use the end()
To get the last element use the end()
<?php $arr = array('php', 'online', 'tutorials'); echo end($arr); // tutorials ?>
No comments:
Post a Comment