What are some common methods for string manipulation in PHP, and how can they be used to extract specific parts of a string like in the example provided?
To extract specific parts of a string in PHP, common methods include `substr()`, `strpos()`, `str_replace()`, and regular expressions. These functions can be used to manipulate strings by extracting or replacing specific substrings based on certain criteria.
$string = "Hello, World!";
$substring = substr($string, 7, 5); // Extracts "World"
echo $substring;