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/40 11:50

BTW, http://www.wiki.cc/php/RecursiveDirectoryIterator may be exact
match when you need to iterate through files in folders.

Sincerely,
Alexander
http://www.alexatnet.com/

Colin McKinnon wrote:
> Sonnich - go get a copy of the PHP manual and read it - its free and even
> avilable in .chm format. You can download it from
> http://www.php.net/docs.php
>
> Sonnich wrote:
>
> > And while I am at it:
> >
> > Format - when I want 35 to be shown as 0035 ?
> >
>
> printf()
>
> > Is there a way to look for files. eg c:\here\*.pdf (as Dir in VB)?
> >
> Yes but the builtin does not implicitly support recursion or wildcards - you
> need to implement them for yourself. Alternatively you can run external
> programs and read the results back into PHP.
>
> >
> > Sonnich wrote:
> >> I am taking this from VB, but what are int and val in PHP?
>
> Largely redundant since it is dynamically typed. But it does provide ceil(),
> floor() and round() along with type casting.
>
> >>
> >> $i = Int(Val(substr($code, 3, 3)) / 100) * 100;
> >>
>
> Assuming that you may have decimals within the 3 chars:
>
> $i = (integer)substr($code, 3, 3);
>
> C.

 

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

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