The strlen function returns the length of a string.

    
    $preamble = 'We the People';

    $preamble_length = strlen($preamble);

    echo $preamble_length;
    // 13