|
Posted by AlexVN on 12/18/34 11:50
Hi,
Int(a) = (int)$a
Val(a) - you do not need it because PHP converts numbers to strings
automatically.
Format - consider http://php.net/printf or http://php.net/sprintf
Sincerely,
Alexander
http://www.alexatnet.com/
Sonnich wrote:
> And while I am at it:
>
> Format - when I want 35 to be shown as 0035 ?
>
> Is there a way to look for files. eg c:\here\*.pdf (as Dir in VB)?
>
>
> Sonnich wrote:
> > I am taking this from VB, but what are int and val in PHP?
> >
> > $i = Int(Val(substr($code, 3, 3)) / 100) * 100;
> >
> > In case you dont know VB
> > Int - truncates the numner (i looked for trunc already)
> > Val - string to number
> >
> > Sonnich
> >
> > PS: jep I have realised I can to the thing above simpler.
Navigation:
[Reply to this message]
|