Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] function questions: arrays & string concat. From: Richard Lynch (lynch <email protected>)
Date: 03/17/99

At 9:55 AM 3/17/99, Paul Southworth wrote:

>1. What's the easiest way to add or remove items from an array in PHP?
> You know, like perl's "push" and "pop" functions.

$foo[] = 'new thing';
unset($foo, count($foo) - 1);

There is a contributed class to do push/pop.

>2. Where's strcat()?

$foo = 'str' . 'cat';
echo $foo;

-- "TANSTAAFL" Rich lynch <email protected> webmaster@ and www. all of:
R&B/jazz/blues/rock - jademaze.com music industry org - chatmusic.com
acoustic/funk/world-beat - astrakelly.com sculptures - olivierledoux.com
my own nascent company - l-i-e.com cool coffeehouse - uncommonground.com

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>