• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Sifan Wang
    Sifan Wang
    613 Points

    About OOP PHP Properties of a Class, I have a question

    Posted November 28, 2022 2:44pm by Sifan Wang
    Sifan Wang
    613 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    1 Answer

  • Joshua Jenks
    Joshua Jenks
    2,919 Points

    Really not clear how my answer is wrong given the clue is not relevant to the code I wrote. Can you help debug?

    Posted May 19, 2021 8:46pm by Joshua Jenks
    Joshua Jenks
    2,919 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    2 Answers

  • Sam Katz
    Sam Katz
    2,926 Points

    I'm not sure how to set the properties in a new instance/object in Object Oriented PHP basics

    Posted April 20, 2021 3:39pm by Sam Katz
    Sam Katz
    2,926 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    1 Answer

  • Luka Milovanović
    Luka Milovanović
    290 Points

    not sure whats's wrong with my code

    Posted November 10, 2019 8:51pm by Luka Milovanović
    Luka Milovanović
    290 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    3 Answers

  • ashim khan
    PLUS
    ashim khan
    Pro Student 199 Points

    Create an object named "bluegill" that is an instance of our Fish class.

    Posted April 2, 2019 3:56pm by ashim khan
    ashim khan
    Pro Student 199 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    1 Answer

  • Tatenda Andrew Kwandara
    Tatenda Andrew Kwandara
    18,322 Points

    Create a method on Fish named getInfo that takes no parameters and returns a string that includes the common_name, flavo

    Posted March 20, 2019 1:44pm by Tatenda Andrew Kwandara
    Tatenda Andrew Kwandara
    18,322 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    2 Answers

  • Shari Staten
    Shari Staten
    11,540 Points

    Am I way off here? Please assist. I keep getting an error with this code.

    Posted February 22, 2019 1:42am by Shari Staten
    Shari Staten
    11,540 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    1 Answer

  • Shari Staten
    Shari Staten
    11,540 Points

    I don't understand the error I'm getting here...

    Posted February 17, 2019 1:31am by Shari Staten
    Shari Staten
    11,540 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    1 Answer

  • Tunde Dosa
    PLUS
    Tunde Dosa
    Courses Plus Student 249 Points

    Is there a way to get the solution to a problem if I'm stuck?

    Posted October 23, 2018 7:57am by Tunde Dosa
    Tunde Dosa
    Courses Plus Student 249 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    2 Answers

  • alexpattison3
    alexpattison3
    4,607 Points

    OOP PHP code challenge help

    Posted July 22, 2018 10:15am by alexpattison3
    alexpattison3
    4,607 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    1 Answer

  • jlampstack
    jlampstack
    23,919 Points

    How can I run the console in Visual Studio Code?

    Posted May 28, 2018 4:45pm by jlampstack
    jlampstack
    23,919 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    2 Answers

  • Justyna Bruniaux
    Justyna Bruniaux
    5,397 Points

    Workspace doesn't work properly!!! I correct my error, save the changes BUT the console shows again the same error ...

    Posted January 28, 2018 11:57pm by Justyna Bruniaux
    Justyna Bruniaux
    5,397 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Accessing Properties

    0 Answers

  • ilanaguttman
    ilanaguttman
    2,700 Points

    Why do we add "new" when declaring a new object?

    Posted December 16, 2017 5:18pm by ilanaguttman
    ilanaguttman
    2,700 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    0 Answers

  • Mohamed Abdi Kamal
    Mohamed Abdi Kamal
    1,395 Points

    Error

    Posted November 29, 2017 1:07pm by Mohamed Abdi Kamal
    Mohamed Abdi Kamal
    1,395 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    2 Answers

  • Ramandeep Singh
    Ramandeep Singh
    1,381 Points

    call method

    Posted April 26, 2017 10:29am by Ramandeep Singh
    Ramandeep Singh
    1,381 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    0 Answers

  • samsor ithnin
    samsor ithnin
    3,175 Points

    stuck at challenge 1 of 1 opject oriented php basic

    Posted March 15, 2017 1:40pm by samsor ithnin
    samsor ithnin
    3,175 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    1 Answer

  • Marta David
    Marta David
    4,818 Points

    I think there is a problem with the auto-validation os this task.

    Posted February 23, 2017 6:11pm by Marta David
    Marta David
    4,818 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    2 Answers

  • Tautvydas Lapėnas
    Tautvydas Lapėnas
    4,116 Points

    Why I don`t pass task?

    Posted February 14, 2017 11:12am by Tautvydas Lapėnas
    Tautvydas Lapėnas
    4,116 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    2 Answers

  • Aruna Srinivasiah
    PLUS
    Aruna Srinivasiah
    Courses Plus Student 598 Points

    How do I create an object with some data?

    Posted December 19, 2016 1:17pm by Aruna Srinivasiah
    Aruna Srinivasiah
    Courses Plus Student 598 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    2 Answers

  • Manu Febby
    Manu Febby
    1,407 Points

    The code should display recipe_1 and recipe_2. But somehow it doesn't.. Can someone review my code?

    Posted October 16, 2016 2:01pm by Manu Febby
    Manu Febby
    1,407 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Accessing Methods

    2 Answers

  • Daniella Galuppi
    Daniella Galuppi
    2,148 Points

    Oops! It looks like Task 1 is no longer passing

    Posted September 21, 2016 8:27pm by Daniella Galuppi
    Daniella Galuppi
    2,148 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Properties of a Class

    1 Answer

  • Bryn Humphreys
    Bryn Humphreys
    26,472 Points

    PHP OOP naming conventions

    Posted July 21, 2016 10:09pm by Bryn Humphreys
    Bryn Humphreys
    26,472 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Adding Properties

    0 Answers

  • bedriye kurt
    bedriye kurt
    902 Points

    OOP Quiz - Cant Figure Out The problem

    Posted July 18, 2016 1:54pm by bedriye kurt
    bedriye kurt
    902 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    5 Answers

  • Rich Burke
    Rich Burke
    1,056 Points

    Task 1, how to create a class called Fish?

    Posted July 6, 2016 11:06pm by Rich Burke
    Rich Burke
    1,056 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    2 Answers

  • Justin Thomas
    Justin Thomas
    10,461 Points

    How do I solve this code challenge?

    Posted June 20, 2016 10:27pm by Justin Thomas
    Justin Thomas
    10,461 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    1 Answer

  • darrell mayson
    darrell mayson
    5,215 Points

    Unable to run PHP in Chromium console under Ubuntu. Produces "Uncaught SyntaxError: Unexpected identifier(...)"

    Posted May 29, 2016 1:04am by darrell mayson
    darrell mayson
    5,215 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Accessing Properties

    1 Answer

  • Sunzuiana Marius Ovidiu
    Sunzuiana Marius Ovidiu
    143 Points

    I create a class called fish, after that it requires to create an object called bluegill as an instance to classFish.How

    Posted May 26, 2016 1:08pm by Sunzuiana Marius Ovidiu
    Sunzuiana Marius Ovidiu
    143 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    3 Answers

  • jason chan
    jason chan
    31,008 Points

    you can use Array Shorthand for this

    Posted May 22, 2016 6:50pm by jason chan
    jason chan
    31,008 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Accessing Properties

    0 Answers

  • wanderley silva
    PLUS
    wanderley silva
    Courses Plus Student 1,140 Points

    help with php (class fish)

    Posted May 20, 2016 4:29am by wanderley silva
    wanderley silva
    Courses Plus Student 1,140 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Methods of a Class

    1 Answer

  • wanderley silva
    PLUS
    wanderley silva
    Courses Plus Student 1,140 Points

    help with php

    Posted May 19, 2016 4:02am by wanderley silva
    wanderley silva
    Courses Plus Student 1,140 Points
    • PHP
    • Object-Oriented PHP Basics
    • Understanding Classes
    • Classes and Objects

    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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.