Tagged articles
4 articles
Page 1 of 1
php Courses
php Courses
Jan 5, 2026 · Backend Development

Master PHP String Truncation: 5 Methods for Clean, Multilingual Output

Learn how to efficiently truncate strings in PHP using five approaches—substr for ASCII, mb_substr for multibyte characters, regex with preg_match, explode with array handling, and a custom function that adds ellipsis—while understanding each method's syntax, advantages, and limitations.

String Manipulationcustom-functionexplode
0 likes · 5 min read
Master PHP String Truncation: 5 Methods for Clean, Multilingual Output
Open Source Tech Hub
Open Source Tech Hub
Nov 19, 2021 · Backend Development

How to Add Custom Super‑Admin Functions in Casbin

This guide explains step‑by‑step how to create, register, and use a custom function in Casbin to support multiple super‑admin users, including code examples for PHP anonymous functions and Enforcer registration.

BackendCasbinPHP
0 likes · 3 min read
How to Add Custom Super‑Admin Functions in Casbin
Laravel Tech Community
Laravel Tech Community
Jul 7, 2020 · Backend Development

PHP rawurldecode Function and Custom UTF-8 URL Decoding

This article explains PHP's rawurldecode() function for decoding URL‑encoded strings, shows its signature, parameters, return value, provides a simple usage example, notes UTF‑8 considerations, and presents a custom utf8RawUrlDecode() function for handling non‑standard %uXXXX sequences.

BackendPHPURL decoding
0 likes · 3 min read
PHP rawurldecode Function and Custom UTF-8 URL Decoding