What is the equivalent function in PHP to Left(DataTable, 1) in VB?

To achieve the equivalent functionality of Left(DataTable, 1) in PHP, you can use the substr() function. This function allows you to extract a substring from a string, starting from a specified position. In this case, you can use substr($string, 0, 1) to get the first character of the string.

$string = "DataTable";
$firstCharacter = substr($string, 0, 1);
echo $firstCharacter; // Output: D