Page 1 of 1

[SOLVED] What does "%s" mean?

Posted: Tue Apr 28, 2009 1:34 am
by jmcgin51
I'm sure this isn't a CMSMS-specific question, but I've been unable to find anything online to help me out.  If someone can point me in the right direction, I'd appreciate it.

For example, in the 1.6.4 FEU en_us.php language file, line 105 reads as follows:

Code: Select all

$lang['error_nogroupproprelns'] = 'Could not find properties for group %s';
Obviously "%s" is a variable representing the group in question, but I don't understand where this variable is defined?  Especially since the same variable is used again in lines 107, 108, 109, 110, etc.

I don't need spoon-feeding (I hope), but I don't know enough about this to know what to search for on Google, etc.  I tried, but with no good results.  Is there a special name for this kind of variable?  Does it have to be "%s", or could it be "%d", "%r", etc?

Any help?

TIA!

Re: What does "%s" mean?

Posted: Tue Apr 28, 2009 6:56 am
by vilkis
Hi,
It is php related  ;)

look at http://lt.php.net/manual/en/function.sprintf.php

Vilkis

Re: What does "%s" mean?

Posted: Tue Apr 28, 2009 1:15 pm
by jmcgin51
thank you so much, vilkis!!!  I would have looked for a long time before finding that reference...