My Math Forum PHP Hexadecimal - pls help - stucked
 User Name Remember Me? Password

 Computer Science Computer Science Forum

 June 20th, 2017, 02:14 AM #1 Newbie   Joined: Jun 2017 From: Romania Posts: 5 Thanks: 0 PHP Hexadecimal - pls help - stucked Dear, Can someone please help me to understand this code: 1 2 3 \$d = 'A8'; for (\$n=0; \$n<5; \$n++) echo ++\$d / How can you get A9 B0, B1? Is there any good math book to explain me all of the math functions in PHP? Last edited by skipjack; June 20th, 2017 at 12:19 PM.  June 20th, 2017, 05:04 AM #2 Global Moderator Joined: Dec 2006 Posts: 18,433 Thanks: 1462 I haven't checked the syntax, but the idea is that the echo statement is executed 5 times. Each time,$d is incremented before being used by echo. Your question seems to assume something else occurs. As far as I know, PHP documentation is available online. Why do you want it in the form of a math book (as distinct from a PHP manual), and why just for the math functions?
 June 20th, 2017, 05:13 AM #3 Newbie   Joined: Jun 2017 From: Romania Posts: 5 Thanks: 0 Thank you for your answer. However this is pure math: https://en.wikipedia.org/wiki/Hexadecimal and it is connected to the code above. However: How can you get: A9 B0, B1 Math functions are the core of the php. If anyone has any idea how to go through this, with any good books, samples will be rewarded. I went through w3 school all the task, read some books, but it is not enough for understand loops.
 June 20th, 2017, 05:54 AM #4 Senior Member   Joined: Apr 2014 From: UK Posts: 793 Thanks: 295 Do you mean A9, AA, AB (and AC, AD to complete the loop)?
 June 20th, 2017, 07:13 AM #5 Newbie   Joined: Jun 2017 From: Romania Posts: 5 Thanks: 0 For my code:
June 20th, 2017, 07:18 AM   #6
Member

Joined: Nov 2012
From: The Netherlands

Posts: 33
Thanks: 2

Quote:
 Originally Posted by pvesel Dear, Is there any good math book to explain me all of the math functions in PHP?
will this be of any help to you:

PHP: Math Functions - Manual

http://php.net/manual/en/book.math.php

 June 20th, 2017, 08:03 AM #7 Newbie   Joined: Jun 2017 From: Romania Posts: 5 Thanks: 0 I found this example on the site you gave me: PHP: Incrementing/Decrementing Operators - Manual The function is incrementation/decrementation The site is good, but I need more details explanation with examples. Last edited by skipjack; June 20th, 2017 at 12:35 PM.
 June 20th, 2017, 10:37 AM #8 Newbie   Joined: Jun 2017 From: Romania Posts: 5 Thanks: 0 I found my example on the page suggested. I would like further explanation regarding incremenation\decremenation, books with exercises... Thank you
 June 20th, 2017, 12:00 PM #9 Member     Joined: Jun 2017 From: India Posts: 65 Thanks: 3 Code:  PHP: Incrementing/Decrementing Operators - Manual It helps ? Last edited by awholenumber; June 20th, 2017 at 12:22 PM.
 June 21st, 2017, 12:12 AM #10 Senior Member   Joined: Apr 2014 From: UK Posts: 793 Thanks: 295 I'm rather glad I don't use PHP, that's horrible

 Tags hexadecimal, php, pls, stucked

 Thread Tools Display Modes Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post Techmaster Computer Science 7 August 26th, 2014 02:29 PM eChung00 Computer Science 3 March 4th, 2013 03:59 PM Igo Computer Science 3 September 7th, 2012 04:58 AM Primalscientist Computer Science 13 April 20th, 2011 01:41 PM Primalscientist Computer Science 3 April 17th, 2011 04:31 AM

 Contact - Home - Forums - Cryptocurrency Forum - Top