?php
$a=123 456;
echo (int)$a;
$b=(int) $a;
echo br;
echo $b;
?
Produces :
123
123
So I don't think that the problem is how PHP makes the casting but the algorithm is
useless. Do that :
$ar=explode(' ',microtime());
$a=$ar[1]+$ar[0];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
$ar_name[$new_key]=$value;
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Kiat Kin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 12:35 PM
Subject: [PHP] assosiative array in php
how to insert the new key
A colegue of mine said to me a month ago that in the routines on phpbuilder.com there
are one or few bugs. Look at the code. The
problem is in session handlers.
Hope this will help you.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message
You have to move or delete your file so it have not te be in the /tmp after your
script finishes or /tmp will get crowdy.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: --- [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday
use exec() to call fax program on Linux.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Ari Nepon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 6:25 PM
Subject: [PHP] PHP to fax
Does anyone know
from http://php.net/quickref.php
$os = array (Mac, NT, Irix, Linux);
if (in_array (Irix, $os)){
print Got Irix;
}
Andrey HristovIcyGEN Corporationhttp://www.icygen.comBALANCED SOLUTIONS
- Original Message -
From: Joseph Bannon [EMAIL PROTECTED]
To: PHP (E-mail) [EMAIL
Try number_format()
if you have int than ($int_var*100)/100 or (double)$int_var
number_format((double)$int_var,...)
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Robert J Collins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
if (!define(__FUNCTIONS__) )
must be:
if (!defined(__FUNCTIONS__) )
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Doug Farmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 6:50 AM
Subject: [PHP
Hmmm, RegEx work on strings, so the engine needs strings. Because of that your
integers are converted to strings, if you want to
give their life back make
foreach ($arr as $k=$v){
$arr[$k]+=0;
}
Now all are integers.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
Look for mysql_affected_rows() docs.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Clint Tredway [EMAIL PROTECTED]
To: Php General MailingList [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 3:40 PM
Subject: [PHP] how
301 - 310 of 310 matches
Mail list logo