[PHP-DEV] Bug #13010: echoed multipdimensional arrays

2001-08-28 Thread dcaylor

From: [EMAIL PROTECTED]
Operating system: Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: Arrays related
Bug description:  echoed multipdimensional arrays

Multidemensional arrays seem to not work within an echo.

$variable[one][two] = 'Hi There';
$variable[one][three] = 'This is a bug';

echo 
  htmlbody
  $variable[one][two]br
  $variable[one][three]
  /body/html
;

results in 
  Array[two]
  Array[three] 
rather than the expected
  Hi There
  This is a bug
-- 
Edit bug report at: http://bugs.php.net/?id=13010edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13011: formatting numbers

2001-08-28 Thread dcaylor

From: [EMAIL PROTECTED]
Operating system: Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  formatting numbers

It would be extremely helpful to be able to do more formatting of numbers
than is currently available.  
Specifically, it would be good if number_format would prepend a dollar sign
or allow negative numbers to be shown in brackets rather than with a
negative sign.  Both of these are necessary for accounting applications.

My current solution for negative currency looks like this: 
  if ( $value  0 )
  {
$value = (\$.number_format(abs($value),2).);
  }
which works but is less than ideal.  For one thing, it makes later use of
the number difficult.

-- 
Edit bug report at: http://bugs.php.net/?id=13011edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]