new operator and times() function [diffs]
| From: | Faisal Nasim | Date: | Tue, 25 Apr 2000 08:22:50 +0000 |
| Subject: | new operator and times() function [diffs] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18174@lists.php.net to get a copy of this message | ||
Hi,
Just implemented the 'x' operator as in Perl, and a
corresponding times() function.
print "blah" x 10;
print times ( "blah" , 10 );
Both will print the expression 'blah' ten times.
Enjoy!
Faisal
Attachment: [application/octet-stream] basic_functions.c.patch
Attachment: [application/octet-stream] basic_functions.h.patch
Attachment: [application/octet-stream] zend_compile.h.patch
Attachment: [application/octet-stream] zend_execute.c.patch
Attachment: [application/octet-stream] zend_opcode.c.patch
Attachment: [application/octet-stream] zend_operators.c.patch
Attachment: [application/octet-stream] zend_operators.h.patch
Attachment: [application/octet-stream] zend-parser.y.patch
Attachment: [application/octet-stream] zend-scanner.l.patch
Attachment: [application/octet-stream] basic_functions.c.patch
Attachment: [application/octet-stream] basic_functions.h.patch
Attachment: [application/octet-stream] zend_compile.h.patch
Attachment: [application/octet-stream] zend_execute.c.patch
Attachment: [application/octet-stream] zend_opcode.c.patch
Attachment: [application/octet-stream] zend_operators.c.patch
Attachment: [application/octet-stream] zend_operators.h.patch
Attachment: [application/octet-stream] zend-parser.y.patch
Attachment: [application/octet-stream] zend-scanner.l.patch