🤑 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
  • Prakhar Patwa
    Prakhar Patwa
    11,260 Points

    I am not able to concatenate please help me out

    Posted October 20, 2015 2:34am by Prakhar Patwa
    Prakhar Patwa
    11,260 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    1 Answer

  • Alexander Costa
    Alexander Costa
    11,464 Points

    How does the for each know to grab the ID?

    Posted February 9, 2015 12:14am by Alexander Costa
    Alexander Costa
    11,464 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    1 Answer

  • Simon Strömberg
    Simon Strömberg
    1,423 Points

    Cant get the concatenation to work

    Posted January 19, 2015 6:09pm by Simon Strömberg
    Simon Strömberg
    1,423 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    6 Answers

  • carlosjimenez
    carlosjimenez
    5,504 Points

    Having trouble identifying the names of each part of a multi-dimensional array

    Posted November 14, 2014 5:12am by carlosjimenez
    carlosjimenez
    5,504 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    2 Answers

  • Steven Griffiths
    Steven Griffiths
    3,165 Points

    Why do we use concatenation to add the $product_id to the end of the web address

    Posted October 29, 2014 1:13pm by Steven Griffiths
    Steven Griffiths
    3,165 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    2 Answers

  • jarrod Reeves
    jarrod Reeves
    6,357 Points

    The array number is not changing when I click on each shirt

    Posted October 9, 2014 11:48am by jarrod Reeves
    jarrod Reeves
    6,357 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    1 Answer

  • Ben Goldman
    Ben Goldman
    14,626 Points

    PHP Arrays and Keys

    Posted July 17, 2014 9:25pm by Ben Goldman
    Ben Goldman
    14,626 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    4 Answers

  • Stein Christensen
    Stein Christensen
    3,592 Points

    What are Keys and Values?

    Posted June 20, 2014 11:12pm by Stein Christensen
    Stein Christensen
    3,592 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    1 Answer

  • daniwao
    daniwao
    13,125 Points

    Shirts.php not showing up

    Posted June 20, 2014 5:35am by daniwao
    daniwao
    13,125 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    1 Answer

  • Adam Allen
    Adam Allen
    896 Points

    Notice: Undefined variable: products in C:\xampp\htdocs\shirts.php on line 18

    Posted May 14, 2014 7:20pm by Adam Allen
    Adam Allen
    896 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    2 Answers

  • Lucas Santos
    Lucas Santos
    19,315 Points

    Don't understand foreach($products as $product_id => $product)

    Posted May 5, 2014 4:09am by Lucas Santos
    Lucas Santos
    19,315 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    7 Answers

  • ammarkhan
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points

    Where does the shirts gets it id?

    Posted April 3, 2014 9:41am by ammarkhan
    .a{fill-rule:evenodd;}techdegree
    ammarkhan
    Front End Web Development Techdegree Student 21,661 Points
    • PHP
    • Build a Simple PHP Application
    • Integrating with PayPal
    • Including the Products Array

    2 Answers

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.