✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • Close
  • Hemin Bahaaldeen
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hemin Bahaaldeen
    PHP Development Techdegree Student 370 Points

    it did not work for me can u tell me the reason????

    Posted on Aug 10, 2019 by Hemin Bahaaldeen
    .a{fill-rule:evenodd;}techdegree
    Hemin Bahaaldeen
    PHP Development Techdegree Student 370 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Built-Ins and Documentation

    0 Answers

  • Amy Hsieh
    Amy Hsieh
    6,023 Points

    Is print_info an internal function of PHP or a self-defined function by user?

    Posted on Jul 9, 2019 by Amy Hsieh
    Amy Hsieh
    6,023 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • Keith Miller
    Keith Miller
    2,310 Points

    My code is only returning one name, Hampton. What am I missing?

    Posted on Sep 11, 2018 by Keith Miller
    Keith Miller
    2,310 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • Siraj Khan
    Siraj Khan
    3,451 Points

    Why does `function print_info($key,$value){ echo "$key is a $value.<br>"; }` print : "Frog is Mike" .??

    Posted on Jun 6, 2018 by Siraj Khan
    Siraj Khan
    3,451 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • Amy Dollar
    Amy Dollar
    2,562 Points

    Am I the only one.......

    Posted on Nov 27, 2017 by Amy Dollar
    Amy Dollar
    2,562 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • yalın küçük
    yalın küçük
    4,810 Points

    array_combine method has a problem with doubled values. Then PHP as a language has a problem.

    Posted on Oct 16, 2017 by yalın küçük
    yalın küçük
    4,810 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    5 Answers

  • John Silverstein
    John Silverstein
    6,290 Points

    why not use foreach instead of array_walk?

    Posted on Aug 22, 2017 by John Silverstein
    John Silverstein
    6,290 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    0 Answers

  • Andrew mwendo
    Andrew mwendo
    5,712 Points

    i am finished with error handling it wont take me anywhere i am stuck

    Posted on Apr 13, 2017 by Andrew mwendo
    Andrew mwendo
    5,712 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Internal Functions

    1 Answer

  • Mariano Escudero Salinas
    Mariano Escudero Salinas
    1,340 Points

    Hi, i'am trying to watch this lesson, but as soon as i click on the play buttom a message shows up:

    Posted on Feb 17, 2017 by Mariano Escudero Salinas
    Mariano Escudero Salinas
    1,340 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Built-Ins and Documentation

    0 Answers

  • daniel steinberg
    daniel steinberg
    14,651 Points

    workspace issues

    Posted on Sep 26, 2016 by daniel steinberg
    daniel steinberg
    14,651 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP String Functions

    4 Answers

  • Scott Brown
    Scott Brown
    653 Points

    What to use <br> or \n ?

    Posted on Apr 15, 2016 by Scott Brown
    Scott Brown
    653 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • David Moran
    David Moran
    9,617 Points

    Updating PHP Cookbook link

    Posted on Mar 12, 2016 by David Moran
    David Moran
    9,617 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Functions Next Steps

    1 Answer

  • Bappy Golder
    Bappy Golder
    13,449 Points

    Why are we using a string version of the code?

    Posted on Nov 21, 2015 by Bappy Golder
    Bappy Golder
    13,449 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • Bruno Dias
    Bruno Dias
    10,554 Points

    Why there are two variables at array_keys loop?

    Posted on Oct 27, 2015 by Bruno Dias
    Bruno Dias
    10,554 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • Seth Warner
    Seth Warner
    5,348 Points

    Im just using my imagination here but could you do the following since php reads up to down?

    Posted on Sep 28, 2015 by Seth Warner
    Seth Warner
    5,348 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP String Functions

    3 Answers

  • Georgina Pacey
    Georgina Pacey
    4,139 Points

    Preview is blank. array_walk

    Posted on Sep 27, 2015 by Georgina Pacey
    Georgina Pacey
    4,139 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • Boris Vukobrat
    Boris Vukobrat
    851 Points

    Quiz question about array_keys

    Posted on Sep 3, 2015 by Boris Vukobrat
    Boris Vukobrat
    851 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    3 Answers

  • Habibur Rahman Dipto
    Habibur Rahman Dipto
    8,496 Points

    need help about array_walk()

    Posted on Jul 5, 2015 by Habibur Rahman Dipto
    Habibur Rahman Dipto
    8,496 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • Sjoerd Vermeijden
    Sjoerd Vermeijden
    633 Points

    I've seen 2 videos now where he doesn't close the php tag. How come it still works and why?

    Posted on Jun 30, 2015 by Sjoerd Vermeijden
    Sjoerd Vermeijden
    633 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP String Functions

    2 Answers

  • Daniel Peterson
    Daniel Peterson
    4,456 Points

    Confused about key value order for array functions

    Posted on Jun 24, 2015 by Daniel Peterson
    Daniel Peterson
    4,456 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • Magnus Rydberg
    Magnus Rydberg
    4,683 Points

    What is the difference between key and index when we look at an associative array?

    Posted on Jun 16, 2015 by Magnus Rydberg
    Magnus Rydberg
    4,683 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    2 Answers

  • Frank D
    Frank D
    14,042 Points

    What's the main use of strlen, substr, strpos?

    Posted on Apr 23, 2015 by Frank D
    Frank D
    14,042 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP String Functions

    4 Answers

  • Jerry Schrader
    Jerry Schrader
    4,396 Points

    This is probably something very simple, but for some reason, I get a server error with my code.

    Posted on Apr 15, 2015 by Jerry Schrader
    Jerry Schrader
    4,396 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

  • Derek Dawes
    Derek Dawes
    4,944 Points

    array_walk($names, 'print_info'); question regarding $value, $key

    Posted on Mar 3, 2015 by Derek Dawes
    Derek Dawes
    4,944 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    4 Answers

  • Oğulcan Girginc
    Oğulcan Girginc
    24,848 Points

    Wrong link in Teacher's Notes!

    Posted on Feb 17, 2015 by Oğulcan Girginc
    Oğulcan Girginc
    24,848 Points
    • PHP
    • PHP Functions
    • PHP Internal Functions
    • PHP Array Functions

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.