Re: trouble to print array contents using slice operator

2005-04-16 Thread Diez B. Roggisch
praba kar wrote: > Dear all, > >In Php array_slice function base > we can print array contents as per our desire > eg) > > $a = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); > $arr = array_slice($a,10,10); > > this function will print 11,12,13,14,15 > > But I try to print the same thing in p

RE: trouble to print array contents using slice operator

2005-04-16 Thread Michael . Coll-Barth
print a[10:15] or print a[10:] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] n.org]On Behalf Of praba kar Sent: Saturday, April 16, 2005 10:28 AM To: python-list@python.org Subject: trouble to print array contents using slice operator Dear all, In Php array