Format() function in PHP? (conerting pawn to PHP)
#7

Quote:
Originally Posted by kc
Посмотреть сообщение
In the vast majority of cases sprintf is overkill, and PHP offers alternative methods:

PHP allows for variables to be parsed inside strings (like in your example) with double quotes ("), but not single quotes like you are using.
I never actually knew i could use " in PHP, thanks for that!

Quote:
Originally Posted by kc
Посмотреть сообщение
(I also hope that $svr is sanitized if it is based on any kind of user input!)
It's not, $svr is definable in the config file
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)