PSD to HTML conversion PSD to HTML conversion PSD2HTML.com with over 300 professionals takes the designs to HTML and beyond

Subscribe to The Thread

  1. Mark Cole says:

    Seriously? This is terrible lol.

  2. Kenrick says:

    lmao!!!!!!!!!!!!!!!!!!!!!!!!! this is funny

  3. Dyllon says:

    lollllll

    so, an attempt to correct this users coding..

    input:

    $array[0] = "CSS";
    $array[1] = "HTML";
    $array[2] = "PHP";
    $array[3] = "JavaScript";
    
    echo '';
    print_r ($array);
    echo '';

    output:

    Array
    (
        [0] => CSS
        [1] => HTML
        [2] => PHP
        [3] => JavaScript
    )
  4. Chris says:

    haha this is too basic for a snippet

  5. Bill Brown says:

    Or this:


    echo '<pre>',print_r($array,1),'<pre>';

    • Gringer says:

      For beginners:

      The reason we use a comma instead of a period/dot between the ‘pre’ and the print_r() is because print_r() does an echo from itself.

      If you would use a dot instead then it PHP will echo print_r() and AFTER that a pre and a /pre.


      Gringer
      PS:

      As we can read here:
      http://nl3.php.net/manual/function.print-r.php

      print_r() takes a second argument to return instead of echo:

      echo '<pre>' . print_r($array,true) . '</pre>';

      Note: We use dots instead of comma’s, and give print_r() an extra ‘true’ (= return).

      Not as short, but just to explain to beginners how the spoon fits in the fork xD

  6. superman says:

    I’m sorry to say that not everybody is experienced who come here.It is a wonderful resource for the all levels of coder. Keep it up Chris.. Thanks

  7. dekorasyon says:

    Gringer. I agree with you. Thanks.

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~