Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord