TOP
英國出版界指標大獎肯定!A.F. Steadman 獲年度作家,《史坎德》系列帶你踏上熱血奇幻旅程
Mastering PHP String Manipulation: From Fundamentals to Advanced Techniques: The PHP Developer's Practical Guide to String Manipulation and Text Proce
滿額折

Mastering PHP String Manipulation: From Fundamentals to Advanced Techniques: The PHP Developer's Practical Guide to String Manipulation and Text Proce

商品資訊

定價
:NT$ 912 元
無庫存,下單後進貨(到貨天數約30-45天)
下單可得紅利積點 :27 點
商品簡介

商品簡介

What You'll Learn
  • Grasp String Fundamentals: Understand PHP strings, their internal representation, different syntax options (quotes, Heredoc, Nowdoc), and how to access characters.
  • Master Character Encoding: Dive deep into character sets like UTF-8, handling Unicode, common encoding pitfalls, and configuring PHP for international text with the mbstring extension.
  • Perform Essential String Operations: Become proficient with core string functions for concatenation, finding and extracting substrings, comparing strings (including locale-aware), and manipulating string case.
  • Search, Replace, and Tokenize Effectively: Learn to perform simple and advanced search-and-replace, count occurrences, translate characters, and tokenize strings using both basic functions and regular expressions via preg_split().
  • Format and Trim Strings with Precision: Discover how to trim whitespace, pad strings, wrap text, and format numbers. You'll master formatted output with sprintf() and printf(), and parse input with sscanf().
  • Handle HTML and URLs Securely: Understand how to safely encode and decode HTML entities, strip HTML tags, and correctly encode/decode URLs. You'll also learn to parse URLs and build/parse query strings.
  • Master Regular Expressions (PCRE): Get a thorough introduction to regex syntax, metacharacters, and modifiers. You'll use PHP's PCRE functions (preg_match(), preg_replace(), etc.) for powerful pattern matching, searching, replacing, and splitting.
  • Implement Advanced Regex Techniques: Explore advanced regex concepts like capturing groups, lookaheads/lookbehinds, and atomic grouping. You'll learn to build complex patterns, use callback-based replacements, and optimize regex for performance.
  • Deep Dive into Internationalization (i18n): Revisit the mbstring extension for multibyte strings and explore the Intl extension for locale-aware operations, including Unicode normalization and classes like Collator and MessageFormatter.
  • Optimize String Manipulation Performance: Understand PHP's internal string handling. Learn to benchmark, choose the right functions, minimize string copying, and optimize regex performance to avoid common pitfalls.
  • Manage Memory with Large Strings: Learn how PHP manages string memory and techniques for processing large strings efficiently, including streaming data, chunking, and using generators.
  • Fortify Security in String Handling: Crucially, you'll learn to prevent common web vulnerabilities like Cross-Site Scripting (XSS), SQL Injection, and Command Injection through proper encoding, prepared statements, and escaping.
  • Handle Data Safely and Validate Inputs: Understand validation vs. sanitization. You'll learn to use PHP's filter functions, validate string length and format, and handle encoding issues securely to prevent exploits.
  • Work with Binary Data: Learn the distinction between text and binary strings and how to use pack() and unpack() to handle binary data from files or network streams.
  • Build Practical Text Processing Tools: Apply your knowledge to real-world scenarios by learning to build a simple templating engine, parse common data formats (CSV, JSON), and create practical solutions like URL slug generators and search highlighting features.

購物須知

外文書商品之書封,為出版社提供之樣本。實際出貨商品,以出版社所提供之現有版本為主。部份書籍,因出版社供應狀況特殊,匯率將依實際狀況做調整。

無庫存之商品,在您完成訂單程序之後,將以空運的方式為你下單調貨。為了縮短等待的時間,建議您將外文書與其他商品分開下單,以獲得最快的取貨速度,平均調貨時間為1~2個月。

為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。

若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。

定價:100 912
無庫存,下單後進貨
(到貨天數約30-45天)

暢銷榜

客服中心

收藏

會員專區