πŸ€‘ 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

  • 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
  • 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 August 10, 2019 11:31am 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 July 9, 2019 12:35pm 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 September 11, 2018 12:57am 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 June 6, 2018 6:36pm 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 November 27, 2017 2:24pm 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 October 16, 2017 1:36am 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 August 22, 2017 8:15pm 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 April 13, 2017 2:20pm 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 February 17, 2017 11:24am 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 September 26, 2016 11:13pm 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 April 15, 2016 11:13pm 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 March 12, 2016 5:41pm 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 November 21, 2015 3:25am 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 October 27, 2015 1:34pm 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 September 28, 2015 3:15am 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 September 27, 2015 2:01pm 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 September 3, 2015 10:11pm 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 July 5, 2015 10:08am 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 June 30, 2015 10:09am 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 June 24, 2015 10:59am 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 June 16, 2015 5:50pm 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 April 23, 2015 1:09pm 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 April 15, 2015 12:23pm 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 March 3, 2015 4:49am 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 February 17, 2015 5:37pm 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.