Date: 03/19/00
- Next message: ssilk: "[PHPLIB-DEV] cvs commit"
- Previous message: ssilk: "[PHPLIB-DEV] cvs commit"
- Next in thread: ssilk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ssilk
Date: Mon Mar 20 02:36:24 2000
Modified files:
php-lib/php/strings2.inc
Log message:
A new function wich will print out or any other char(s) instead of
nothing. I use it for table-data, to avoid this (sometimes) ugly locking
empty fields if I print nothing.
Index: php-lib/php/strings2.inc
diff -u php-lib/php/strings2.inc:1.2 php-lib/php/strings2.inc:1.3
--- php-lib/php/strings2.inc:1.2 Sun Nov 22 15:27:43 1998
+++ php-lib/php/strings2.inc Mon Mar 20 02:35:54 2000
@@ -8,7 +8,7 @@
## C a little bit better it will be placed directly in PHP3.
## But I can't... :-}
##
-## $Id: strings2.inc,v 1.2 1998/11/22 14:27:43 sas Exp $
+## $Id: strings2.inc,v 1.3 2000/03/20 01:35:54 ssilk Exp $
##
@@ -76,6 +76,18 @@
}
function p_0or1 ($val,$str1,$str2) {
print o_0or1 ($val,$str1,$str2);
+}
+
+function o_fnbsp ($val,$optchar='') {
+ if (empty($val))
+ if (empty($optchar)) return(" ");
+ else return($optchar);
+ else
+ return($val);
+}
+
+function p_fnbsp ($val,$optchar='') {
+ print o_fnbsp ($val,$optchar);
}
##
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: ssilk: "[PHPLIB-DEV] cvs commit"
- Previous message: ssilk: "[PHPLIB-DEV] cvs commit"
- Next in thread: ssilk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

