[RESOLVED] NOOB, I Need To Place A Unit After Some Math....
Okay So I Am Okay With PHP Because When I Need A Code I Cannot Think Of/Haven't Heard Of I Can Use Google, Look At Some Peoples Code And Usally Make It Work With My Project. But I Cannot Figgure This Out Because When Ever I Try To Google It I Get Excel Info Not PHP, So Here Is My Code
PHP Code:
$ConWidth = ($Width - $LinkWidth);
I Want To Set It To Something Like This
PHP Code:
$ConWidth = ($Width - $LinkWidth) + 'px';
so I Can be like
PHP Code:
echo"$ConWidth";
And It will echo 500px or what ever the answer is with the px after it,
Thank You So Much, Sorry Imma Noob
But if you really want to merge them together in one variable, the clue is in the "." operator, above.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks