FAQ
<?php
$fruits = array('apple', 'banana', 'cranberry');

  function Endfun($x){
   $c=count($x);
   $data=$x[$c-1];
   return $data;
  }
  echo Endfun($fruits); // cranberry
?>
----
Server IP: 69.147.83.199
Probable Submitter: 123.201.135.77
----
Manual Page -- http://php.net/manual/en/function.end.php
Edit -- https://master.php.net/note/edit/112181
Del: integrated -- https://master.php.net/note/delete/112181/integrated
Del: useless -- https://master.php.net/note/delete/112181/useless
Del: bad code -- https://master.php.net/note/delete/112181/bad+code
Del: spam -- https://master.php.net/note/delete/112181/spam
Del: non-english -- https://master.php.net/note/delete/112181/non-english
Del: in docs -- https://master.php.net/note/delete/112181/in+docs
Del: other reasons-- https://master.php.net/note/delete/112181
Reject -- https://master.php.net/note/reject/112181
Search -- https://master.php.net/manage/user-notes.php

Search Discussions

  • Aharvey at May 24, 2013 at 6:02 pm
    Note Submitter: vivekanand dot pathak25@gmail.com

    ----

    <?php
    $fruits = array('apple', 'banana', 'cranberry');

      function Endfun($x){
       $c=count($x);
       $data=$x[$c-1];
       return $data;
      }
      echo Endfun($fruits); // cranberry
    ?>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-notes @
categoriesphp
postedMay 14, '13 at 1:44p
activeMay 24, '13 at 6:02p
posts2
users2
websitephp.net

2 users in discussion

Vivekanand Pathak25: 1 post Aharvey: 1 post

People

Translate

site design / logo © 2019 Grokbase