[SOLVED] What does "%s" mean?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

[SOLVED] What does "%s" mean?

Post 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!
Last edited by jmcgin51 on Tue Apr 28, 2009 1:17 pm, edited 1 time in total.
vilkis

Re: What does "%s" mean?

Post by vilkis »

Hi,
It is php related  ;)

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

Vilkis
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: What does "%s" mean?

Post by jmcgin51 »

thank you so much, vilkis!!!  I would have looked for a long time before finding that reference...
Post Reply

Return to “The Lounge”