Fork me on GitHub

pnVarPrepForDisplay($variable) --> separare text  Bottom

  • Hi:

    I am working on a mod for a module I need. The module is working fine BUT I wnat to change the display of information.

    I have this statement:

    $variable .= "".pnVarPrepForDisplay($VARIABLE)."";

    Lets say $variable is preffered beer brand, the question is how I could insert SPACES so that brand names are not displayed together. Could I do this right at that statement and how.

    RIGHT NOW IT DISPLAYS:

    BEER1BEER2BEER3 etc...

    I want to display like BEER1 BEER2 BEER3

    Another option is to insert an spacer image to separate the text. Is that possible? and how.

    Thanks in Advance!


    icon_rolleyes
  • $variable .= ' ';

    or

    $variable .= ' ';

    ?

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • I'm pretty sure you don't need the double quotes surrounding pnVarPrapForDisplay()... but since you have them there put a space or   in the first one wink .

    But it might be better writen with single quotes since there's no need to parse a space... try:

    $variable .= ' ' . pnVarPrepForDisplay($VARIABLE);

    --
    Under Construction!
  • Hi:

    Thanks all and particularly Topiatic. It is working now as I wanted.

    Later :)
  • WOO HOO! I helped someone :D

    --
    Under Construction!

This list is based on users active over the last 60 minutes.