What are some common string functions in PHP that can be used to manipulate text data?

When working with text data in PHP, there are several common string functions that can be used to manipulate the data. Some of these functions include `strlen()` to get the length of a string, `str_replace()` to replace occurrences of a substring within a string, `substr()` to extract a portion of a string, `strtolower()` to convert a string to lowercase, and `strtoupper()` to convert a string to uppercase.

// Example of using common string functions in PHP
$text = "Hello, World!";
echo strlen($text); // Output: 13
echo str_replace("Hello", "Hi", $text); // Output: Hi, World!
echo substr($text, 0, 5); // Output: Hello
echo strtolower($text); // Output: hello, world!
echo strtoupper($text); // Output: HELLO, WORLD!