Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Beginning PHP 5.3
|
BOOK: Beginning PHP 5.3
This is the forum to discuss the Wrox book Beginning PHP 5.3 by Matt Doyle; ISBN: 978-0-470-41396-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP 5.3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 30th, 2011, 11:48 PM
Authorized User
 
Join Date: Jun 2011
Posts: 51
Thanks: 9
Thanked 0 Times in 0 Posts
Send a message via MSN to nawar youssef
Default Class Constants (Page 173)

hey I have here kind of question about using the constant to make sure that I understand it.
what are the benefits of using the Constant here, what I mean that I can use only the ( type ) property and assign the value to it then I can display it, by using the switch ($myCar->type)????? and I can make the $type constant also.
so where is the different ?
am I missing something else ?
thank you





Similar Threads
Thread Thread Starter Forum Replies Last Post
Constants: Where do they go? DragonLEG BOOK: Beginning ASP.NET 4 : in C# and VB 1 June 11th, 2011 02:02 PM
Error on the page 173 ocn BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 1 November 24th, 2009 01:30 PM
Chapter 5 example (p. 173) Tim BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 3 August 3rd, 2008 09:04 PM
declaring constants and pointer constants proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 3 March 6th, 2007 03:32 PM
chapter 6, page 173-175, error in sql syntax vkranendonk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 May 26th, 2004 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.