Take a look at array_walk()
http://be2.php.net/manual/en/function.array-map.php
It might be better for what you're doing.
Juan Ignacio Borda wrote:
this code doesn't work on my PHP Version 5.2.1 (i'm trying to protect a
stie from XSS)
como';
$a[]=Array('hola','hello');
array_walk_recursive($a
hi again jocke... seems i'll give a go at answering your questions again ;-)
If I understand your question properly, I doubt the previous poster's
response would be useful to you.
The bad news (I think): there are limited functions that deal with array
pointers. There are plenty to deal with arra
Well, you can add items onto the end of an array by doing:
$myarray[] = "added on end";
--
Ben "SheepCow" O'Neill
GameSpyDaily Weekend Editor
http://www.gamespydaily.com
"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok here goes!
>
> Lets say I have an array:
>
>
try to implement your sort function (bubble or quick) and you change both
arrays.
--
Best regards,
George Nicolae
IT Manager
___
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Damouse" <[EMAIL PROTECTED]> wrote in message
001f01c298f8$f3c3c500$3700a8c0@DaMouse">new
It's me again, sorry for the unnessesery post. Mr. Ross Fleming answered
already in my previous post and I thank him very much.
But the post is done so anyone can say to words about "isset" :DDD
"C zz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I decid
try this:
use square brackets as follow:
policy_codes[]
Then in $_GET["policy_codes"] you'll have an array
Hope this helps,
Evan
"Sandeep Murphy" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Am relatively new to PHP and wud appreciate if any
In your MySql query you can put a condition to exclude the unwated 3
records.
example: select * from tablename where not(id in (1,2,3))
"Mark Sweeney" <[EMAIL PROTECTED]> wrote in message
000e01c1568c$af4aa740$96ab869f@a">news:000e01c1568c$af4aa740$96ab869f@a...
Hey,
Just wondering, I am fetchin
essage-
>From: Mike Flynn [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 21, 2001 4:48 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Re: Array
>
>
>Alternately, though I think the array solution is probably the most
>durable, you could also do it as such:
>
>
To have the items auto-numberd so as to skip blank entries, use:
for ($i = 1; $i<6; $i++) {
print "\n";
}
then if on items 1,2 and 5 are filled in, you will have a array with just 3
elements in it.
"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED].
Alternately, though I think the array solution is probably the most
durable, you could also do it as such:
for ($i = 1; $i<6; $i++) {
print "\n";
}
and then retrieve them as $test1 thru $test6, or if you want to use a loop
like this:
for ($i = 1; $i < 6; $i++) {
$thevariable = "test$i";
sorry.. my mistake.. ;-)
there is no problem anymore..
"Erik Xstensen" <[EMAIL PROTECTED]> skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I get this beautiful error message, "Call to undefined function: array()
in
> c:\inetpub\wwwroot\admin.php "
>
> running PHP on Windows
11 matches
Mail list logo