Welcome Guest of Netspec |
Sign in
|
Sign up
Tell me more about:
Home
Service
Contact us
Forum
Portfolio
FAQs
Payment
Welcome to Netspec
E-commerce | Web design | Software design | Server setup | Web hosting | Free classifieds
Feel free to contact us if you need any help!
E-commerce
|
Web server
|
Web design
|
Software design
|
Technical support
Have a look our work samples, see what we can do for you.
View frequent asked questions first if you are a new user. For more info, you can check forum or search our knowledge database.
Monthly Payment
|
One off payment
You are here:
Forum Home
>>
Post new topic
URL:
1 - 1 [ 1]
Master:
# 1
use round, floor, and ceil in php
exp
Online
no
State
Grouping
Member
Class
class4
Score
348
Wealth
219
Posts
269
Login
11:49:09
these are very useful functions.
I have ever create simple Buy 5 get 1 function:
function one_free_got($qty){
if($qty>=5)
return floor($qty/5);
else
return "";
}
Hits: 168, Date: 2009-06-25 08:27:12
[Agree]
( 15
)
[Against]
( 15
)
Quote
|
Edit
1 - 1 [ 1]
Reply: use round, floor, and ceil in php
*First line:
More content:
Tags:
Hint
: You cannot post here before login
Login
|
Register
nothing