You are here: Re: translation from VB (int and val) « PHP Programming Language « IT news, forums, messages
Re: translation from VB (int and val)

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация