Use a multi-dimensional array... try this as a kind of 'proof of
concept'
?php
$array[tu4r][]=0
$array[tu4r][]=10
$array[tu4r][]=100
$array[tu4r][]=1000
$array[ph10][]=0;
$array[ph10][]=1;
$array[ph10][]=2;
$array[ph10][]=126;
echo 'pre';
foreach ( $array[ph10] as $value ) {
echo '
Bingo! Here's the script that work!
-- clip --
$FFR = array (
TU4R = array( TU4R = ),
CD01 = array( CD01 = ),
PH01 = array( PH01 = ),
ENDS = array( ENDS = )
);
// The variable, $name $number came from the script I made
// but
'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Any ideas on combining arrays
Use a multi-dimensional array... try this as a kind of 'proof of
concept'
?php
$array[tu4r][]=0
$array[tu4r][]=10
$array[tu4r][]=100
$array[tu4r][]=1000
$array[ph10][]=0;
$array[ph10][]=1;
$array[ph10][]=2
Regula
$string=preg_replace(/\W/,,$string);
\W = non-word characters in perl regular expressions. Word characters
are 0-9, a-z, A-Z, and _. To kill _ as well, do:
$string=preg_replace(/[_\W]/,,$string);
-Original Message-
From:
[EMAIL PROTECTED]
4 matches
Mail list logo