Jump to content

Search the Community

Showing results for tags 'element'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Folks, What is an "Element" in php ? I came across the word when researching on the php's "Count" function: https://www.tutorialspoint.com/php/php_function_count.htm These are not useful as they talk about "element in array" etc.: http://php.net/manual-lookup.php?pattern=element&scope=quickref https://www.google.com/search?q=what+is+an+element+in+php+%3F&oq=what+is+an+element+in+php+%3F&aqs=chrome..69i57j69i64.5238j0j7&sourceid=chrome&ie=UTF-8 Let's not talk about "element in any array". Let's just talk about "element" itself. What is the definition of an "element" in php ? And so, to newbies, how can you describe an "Element" in the layman's language without resorting to complex or advanced stuffs ? I'd like to see a few examples of an element in php with very simple & basic coding that is easily understandable to all beginners. I'm sure future newbies would appreciate your hard work! I am sure "elements" not only exist in "arrays" but other stuffs in php too. So, how-about a few examples on these other stuffs too regarding their elements ? Let me tell you why I prefer examples of an element without involving the array. Here: https://www.tutorialspoint.com/php/php_function_count.htm It says: Return Value It returns the number of elements in an array. Example Try out following example − <?php $a[0] = 1; $a[1] = 3; $a[2] = 5; $result = count($a); print($result); ?> This will produce the following result − 3 I don't see any elements in that example. I see things in this format: $variable name[array number] = array value; Where is the so-called "element" involved in any of this ? Which part is the "element" ? Which part of the "equation" ? Get a beginner's point of view ? These tutorials are not easy to understand. Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.