Search found 4 matches
- Mon Jan 05, 2004 10:08 am
- Forum: PHP - Code
- Topic: [SOLVED] How to replicate VB right()?
- Replies: 4
- Views: 521
Excellent, thank you. I did find a workaround dividing my integer by 10 to get a decimal point. This was then used as the separator in an explode() and I took the array element as my rightmost digit. <?php $DecimalPlace = $IntNumber / 10; $BigString = strval($DecimalPlace); $SmallStringArray = explo...
- Mon Jan 05, 2004 9:15 am
- Forum: PHP - Code
- Topic: [SOLVED] How to replicate VB right()?
- Replies: 4
- Views: 521
[SOLVED] How to replicate VB right()?
Hi,
I need to extract the rightmost digit from an integer variable eg. if the variable value is 36, I need to return 6.
In VB, the function right() will do this for me. I cannot find a function in php to achieve this.
Can anybody help me?
Thanks in advance
ade
uk
I need to extract the rightmost digit from an integer variable eg. if the variable value is 36, I need to return 6.
In VB, the function right() will do this for me. I cannot find a function in php to achieve this.
Can anybody help me?
Thanks in advance
ade
uk
- Wed Dec 31, 2003 4:47 am
- Forum: PHP - Code
- Topic: Finding the highest value - newbie question
- Replies: 3
- Views: 740
- Tue Dec 30, 2003 6:20 pm
- Forum: PHP - Code
- Topic: Finding the highest value - newbie question
- Replies: 3
- Views: 740
Finding the highest value - newbie question
Hi, I'm new to php and I'm trying to build a small MySQL application for my website. I need to find the highest numeric value (integers)in a table column. so far I have let Dreamweaver MX help me define a recordset which I can see works ok. Next I tried to use the max() function on the recordset whi...