Recent content by Chapaev

  1. C

    What font is being used in this image?

    Use a service like tinyurl.com tr.im or bit.ly to get a short version of the link to the image. You should be able to post that without the "..."
  2. C

    How to round down to nearest whole number 10 with PHP?

    Divide it by 10, cast as an integer to truncate the decimal and multiply back by 10: $var = 44; $roundvar = ((int) ($var/10)) * 10; //$roundvar should equal 40
  3. C

    How do I create line breaks in a .txt file that PHP can read?

    So fgets() returns the whole file in one go? If not then you have to manually add line breaks after each line fgets() gets like so: <?php $file = fopen("test.txt","r"); while(! feof($file)) { echo fgets($file). "<br>"; } fclose($file); ?>
  4. C

    another math problem for college entry test?

    get y to one side: 2x + 3y + 6 = 0 3y = -2x - 6 y = (-2/3)x - 2 This form is "y = mx + b" where 'm' is the slope. Slope: -2/3
Back
Top