The lowest-priced brand-new, unused, unopened, undamaged item in its original packaging (where packaging is applicable).Packaging should be the same as what is found in a retail store, unless the item is handmade or was packaged by the manufacturer in non-retail packaging, such as an unprinted box or plastic bag.See details for additional description.
Get it by Tuesday, Apr 2 from Houston, Texas, United States
PHP is a simple yet powerful open source scripting language that has become a big player in web development. Over a million web sites, from large corporate sites to small personal sites, are using PHP to serve dynamic web content. PHP's broad feature set, approachable syntax, and support for different operating systems and web servers make it an ideal language for rapid web development. The PHP Cookbookis a collection of problems, solutions, and practical examples for PHP programmers. The book contains a unique and extensive collection of best practices for everyday PHP programming dilemmas. For every problem addressed in the book, there's a worked-out solution or "recipe" -- short, focused pieces of code that you can insert directly into your applications. But this book offers more than cut-and-paste code. You also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to similar situations. The recipes in the PHP Cookbookrange from simple tasks, such as sending a database query and fetching URLs, to entire programs that demonstrate complex tasks, such as printing HTML tables and generating bar charts. This book contains over 250 recipes on the following topics: Working with basic data types, including strings, numbers, dates and times, and arrays PHP building blocks, such as variables, functions, classes, and objects Web programming, including forms, database access, and XML Useful features like regular expressions, encryption and security, graphics, internationalization and localization, and Internet services Working with files and directories Command-line PHP and PHP-GTK PEAR, the PHP Extension and Application Repository This book contains an impressive collection of useful code for PHP programmers, from novices to advanced practitioners. Instead of poking around mailing lists, online documentation, and other sources, you can rely on the PHP Cookbookto provide quick solutions to common problems, so you can spend your time on those out-of-the-ordinary problems specific to your application.
This cookbook has a wealth of solutions for problems that PHP programmers face regularly. With topics that range from beginner questions to advanced web programming techniques, the PHP Cookbook contains practical examples-or recipes-for any programmer or web designer who uses the scripting language to generate dynamic web content. With each recipe, the authors include a discussion that explains the logic and concepts underlying the solution.
eBay Product ID (ePID)
Adam Trachtenberg, David Sklar
Number Of Pages
O'Reilly Media, Incorporated
Scholarly & Professional
LC Classification Number
Table Of Content
Preface 1. Strings 1.1 Accessing Substrings 1.2 Replacing Substrings 1.3 Processing a String One Character at a Time 1.4 Reversing a String by Word or Character 1.5 Expanding and Compressing Tabs 1.6 Controlling Case 1.7 Interpolating Functions and Expressions Within Strings 1.8 Trimming Blanks from a String 1.9 Parsing Comma-Separated Data 1.10 Parsing Fixed-Width Delimited Data 1.11 Taking Strings Apart 1.12 Wrapping Text at a Certain Line Length 1.13 Storing Binary Data in Strings 2. Numbers 2.1 Checking Whether a String Contains a Valid Number 2.2 Comparing Floating-Point Numbers 2.3 Rounding Floating-Point Numbers 2.4 Operating on a Series of Integers 2.5 Generating Random Numbers Within a Range 2.6 Generating Biased Random Numbers 2.7 Taking Logarithms 2.8 Calculating Exponents 2.9 Formatting Numbers 2.10 Printing Correct Plurals 2.11 Calculating Trigonometric Functions 2.12 Doing Trigonometry in Degrees, not Radians 2.13 Handling Very Large or Very Small Numbers 2.14 Converting Between Bases 2.15 Calculating Using Numbers in Bases Other Than Decimal 3. Dates and Times 3.1 Finding the Current Date and Time 3.2 Converting Time and Date Parts to an Epoch Timestamp 3.3 Converting an Epoch Timestamp to Time and Date Parts 3.4 Printing a Date or Time in a Specified Format 3.5 Finding the Difference of Two Dates 3.6 Finding the Difference of Two Dates with Julian Days 3.7 Finding the Day in a Week, Month, Year, or the Week Number in a Year 3.8 Validating a Date 3.9 Parsing Dates and Times from Strings 3.10 Adding to or Subtracting from a Date 3.11 Calculating Time with Time Zones 3.12 Accounting for Daylight Saving Time 3.13 Generating a High-Precision Time 3.14 Generating Time Ranges 3.15 Using Non-Gregorian Calendars 3.16 Program: Calendar 4. Arrays 4.1 Specifying an Array Not Beginning at Element 0 4.2 Storing Multiple Elements per Key in an Array 4.3 Initializing an Array to a Range of Integers 4.4 Iterating Through an Array 4.5 Deleting Elements from an Array 4.6 Changing Array Size 4.7 Appending One Array to Another 4.8 Turning an Array into a String 4.9 Printing an Array with Commas 4.10 Checking if a Key Is in an Array 4.11 Checking if an Element Is in an Array 4.12 Finding the Position of an Element in an Array 4.13 Finding Elements That Pass a Certain Test 4.14 Finding the Largest or Smallest Valued Element in an Array 4.15 Reversing an Array 4.16 Sorting an Array 4.17 Sorting an Array by a Computable Field 4.18 Sorting Multiple Arrays 4.19 Sorting an Array Using a Method Instead of a Function 4.20 Randomizing an Array 4.21 Shuffling a Deck of Cards 4.22 Removing Duplicate Elements from an Array 4.23 Finding the Union, Intersection, or Difference of Two Arrays 4.24 Finding All Element Combinations of an Array 4.25 Finding All Permutations of an Array 4.26 Program: Printing an Array in a Horizontally Columned HTML Table 5. Variables 5.1 Avoiding == Versus = Confusion 5.2 Establishing a Default Value 5.3 Exchanging Values Without Using Temporary Variables 5.4 Creating a Dynamic Variable Name 5.5 Using Static Variables 5.6 Sharing Variables Between Processes 5.7 Encapsulating Complex Data Types as a String 5.8 Dumping Variable Contents as Strings 6. Functions 6.1 Accessing Function Parameters 6.2 Setting Default Values for Function Parameters 6.3 Passing Values by Reference 6.4 Using Named Parameters 6.5 Creating Functions That Take a Variable Number of Arguments 6.6 Returning Values by Reference 6.7 Returning More Than One Value 6.8 Skipping Selected Return Values 6.9 Returning Failure 6.10 Calling Variable Functions 6.11 Accessing a Global Variable Inside a Function 6.12 Creating Dynamic Functions 7. Classes and Objects 7.1 Instantiating Objects 7.2 Defining Object Constructors 7.3 Destroying an Object 7.4 Cloning Objects 7.5 Assigning Object References 7.6 Calling Methods on an Object Returned by Another Method 7.7 Accessing Overridden Methods 7.8 Using Property Overloading 7.9 Using Method Polymorphism 7.