You know how you can write:
Is it possible to use %*.*s using the same argument value...without having a separate argument?
For example, the "proper" way would be:
But, I want to do something like this...and have it work correctly:
Is there a way to do something like this?
Thanks in advance!
Code:
$result = sprintf("%*s\n",9,"HELLO");
For example, the "proper" way would be:
Code:
$result = sprintf("%*.*s\n",9,9,"HELLO");
Code:
$result = sprintf("%*.*s\n",9,"HELLO");
Thanks in advance!