Jump to content

Search the Community

Showing results for tags 'this'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 2 results

  1. I've been given an unfortunate task of working with magento. My question might be magento-specific, but I'm not sure that it is. In short, I'm troubleshooting something and confused. This code... $user = $this->getUser(); ...would seem to be quite easy to troubleshoot, but it is not. The current class has no getUser function. Its base class has no getUser function. If I print a debug statement to examine $this, the class I'm looking at -- Session -- isn't the class at all! $this is some other class! In fact, the class that is shown doesn't exist anywhere in the source code. So... what the heck? How can $this not be $this ??
  2. Okay guys and gals I'm not "cheating" on this one because it's end of semester and I already turned in my code. I'm going to fail the PHP class because I'm just not a programmer mind. I'm a creative mind. I failed my SQL course in the tech school I attend because I couldn't get past outer joins. It's like my mind hits a mental brick wall and can't burst through it. BUT this @%!# thing has given me so much trouble I want to see someone write it out for me to see where I went wrong. Or rather, why I failed it. Or rather, a reason why I shouldn't toss my computer off of a bridge from a moving vehicle. Here's the assignment below. Yea yea it's basic stuff but like I said I AM NOT A PROGRAMMER. Can't DO this. Didn't help that the PHP I course I took -- this assignment I paste is PHP II -- was over the summer semester and thus three weeks. Made a promise to myself: no more summer courses. ===== For this assignment, please write a PHP script that does the following: 1. Pre-populate an array(s) with 20 types of sushi and their associated prices. 2. Use a foreach() loop to parse the array(s) and: Find the highest priced sushi Find the lowest price sushi Find the average sushi cost 3. Use a foreach() loop to parse the array(s) and: If the sushi's price is above the average price echo/print out the sushi's name,its price and the string "expensive" If the sushi's price is above the average price, echo/print out the sushi's name, its price and the string "cheap" 4. Write out a message displaying the most expensive and the least expensive sushi
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.