PHP Cookbook

Modern Code Solutions for Professional Developers

Paperback Engels 2023 1e druk 9781098121327
€ 76,35
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

If you're a PHP developer looking for proven solutions to common problems, this cookbook provides code recipes to help you resolve a variety of coding issues. PHP is a remarkably easy language to work with, which explains why it powers more than 75% of the websites online today. It's also incredibly forgiving of programming mistakes, which can perpetuate reuse of questionable code.

By leveraging modern versions of PHP through version 8.2, author Eric Mann provides self-contained recipes that will enable you to solve the problems you face in your day-to-day work. You'll also find established patterns and examples that any developer can follow for addressing common problems with PHP. With these recipes, you'll quickly identify and resolve complicated issues without having to reinvent the wheel.

This practical guide will help you:
- Build efficient applications composed of functions and objects
- Explore the type system of modern PHP
- Understand key concepts such as encryption, error handling, debugging, and performance tuning
- Examine the PHP package/extension ecosystem
- Learn how to build basic web and command-line applications
- Work securely with files on a machine, both encrypted and in plain text

Specificaties

ISBN13:9781098121327
Trefwoorden:Programmeren, PHP
Taal:Engels
Bindwijze:paperback
Aantal pagina's:450
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:2-6-2023
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Who This Book Is For
Navigating This Book
Conventions Used in This Book
O’Reilly Online Learning
How to Contact Us
Acknowledgments

1. Variables
1.1. Defining Constants
1.2. Creating Variable Variables
1.3. Swapping Variables in Place

2. Operators
2.1. Using a Ternary Operator Instead of an If-Else Block
2.2. Coalescing Potentially Null Values
2.3. Comparing Identical Values
2.4. Using the Spaceship Operator to Sort Values
2.5. Suppressing Diagnostic Errors with an Operator
2.6. Comparing Bits Within Integers

3. Functions
3.1. Accessing Function Parameters
3.2. Setting a Function’s Default Parameters
3.3. Using Named Function Parameters
3.4. Enforcing Function Argument and Return Typing
3.5. Defining a Function with a Variable Number of Arguments
3.6. Returning More Than One Value
3.7. Accessing Global Variables from Within a Function
3.8. Managing State Within a Function Across Multiple Invocations
3.9. Defining Dynamic Functions
3.10. Passing Functions as Parameters to Other Functions
3.11. Using Concise Function Definitions (Arrow Functions)
3.12. Creating a Function with No Return Value
3.13. Creating a Function That Does Not Return

4. Strings
4.1. Accessing Substrings Within a Larger String
4.2. Extracting One String from Within Another
4.3. Replacing Part of a String
4.4. Processing a String One Byte at a Time
4.5. Generating Random Strings
4.6. Interpolating Variables Within a String
4.7. Concatenating Multiple Strings Together
4.8. Managing Binary Data Stored in Strings

5. Numbers
5.1. Validating a Number Within a Variable
5.2. Comparing Floating-Point Numbers
5.3. Rounding Floating-Point Numbers
5.4. Generating Truly Random Numbers
5.5. Generating Predictable Random Numbers
5.6. Generating Weighted Random Numbers
5.7. Calculating Logarithms
5.8. Calculating Exponents
5.9. Formatting Numbers as Strings
5.10. Handling Very Large or Very Small Numbers
5.11. Converting Numbers Between Numerical Bases

6. Dates and Times
Afgekapt op 60 regels

Managementboek Top 100

€ 76,35
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          PHP Cookbook