Hello... Can you please help me on this? How can i use %2$s and %1$s in the sample function below?
PHP Code:
function handle_bbcode_size($text, $size, $fontsize = '')
{
if ($size)
{
switch ($size)
{
case '1':
$fontsize = '11px';
break;
case '2':
$fontsize = '14px';
break;
case '3':
$fontsize = '17px';
break;
case '4':
$fontsize = '20px';
break;
case '5':
$fontsize = '23px';
break;
case '6':
$fontsize = '26px';
break;
case '7':
$fontsize = '29px';
break;
}
}
else
{
$fontsize = '14px';
}
return '<span style="font-size:$fontsize">$text</span>';
}