This page links to the official PHP documentation in French. The PHP manual is maintained by the PHP documentation team and is available in multiple languages courtesy of community translators.

View PHP Manual (Français) →
Common PHP Sections
Quick Reference

String Functions

PHP
// String length
strlen("Hello World");      // 11

// Find in string
strpos("Hello World", "o"); // 4

// Replace in string
str_replace("World", "PHP", "Hello World"); // "Hello PHP"

// Convert case
strtolower("HELLO");   // "hello"
strtoupper("hello");   // "HELLO"

// Trim whitespace
trim("  hello  ");     // "hello"