PHP Programing language

R4R® PHP
(追記) (追記ここまで)
(追記) (追記ここまで)
array_end() Function in PHP
(追記) (追記ここまで)
(追記) (追記ここまで)

array_end()

The end() function moves the internal pointer to, and outputs, the last element in the array.

Syntax:
end(array)

In above syntax, "array" specifies the array to use.

Example:

<?php
$vehicle = array("Car", "Scooter", "Motorcycle", "Truck");
echo current($vehicle)."<br>";
echo end($vehicle);
?>

Output:

Car
Truck

(追記) (追記ここまで)
Copyright ©2021-22 r4r.co.in, all rights reserved. Theguestspost.com
Sitemap
Career
Post comment
About us
Subscription
Unsubscription

AltStyle によって変換されたページ (->オリジナル) /