[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
I Want To Set It To Something Like This
$ConWidth = ($Width - $LinkWidth);
so I Can be like
$ConWidth = ($Width - $LinkWidth) + 'px';
And It will echo 500px or what ever the answer is with the px after it,
Thank You So Much, Sorry Imma Noob
I'd just keep them separate:
But if you really want to merge them together in one variable, the clue is in the "." operator, above.
echo $ConWidth . "px";
"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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Thank You, I Used The
I Have Used The "." operator b4 but when i tried to use it early i must have messed somthing up cuss it works now, again Thank You So Much!
$ConWidth = ($Width - $LinkWidth) . "px";
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread