in reply to Counting Characters

You could reinvent the wheel,
but just use the one you got.
$d_length_o_var = length EXPR;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^