タグ

ブックマーク / www.cs.wcupa.edu/~rkline (1)

  • Perl to Php Translation

    For Belorussian translation of this page, see http://websitehostingrating.com/libs/perl2php-be/ @a = (); @a = ( 'xx', 11, 33.5, ); @a = 12..33; $a[2] = 'something'; $len = scalar(@a); # or $len = @a; @a3 = ('xx', @a1, @a2); ($x, $y) = @a; $a[@a] = 'new'; # push push pop shift unshift splice foreach $i (@a) { .. } $a = array(); $a = array( 'xx', 11, 33.5, ); $a = range(12,33); $a[2] = 'something';

    kopug
    kopug 2007/06/10
    Perlの書き方をPHPにするとこうなるよ!っと
  • 1