Echo ""; Or Print"";

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Echo ""; Or Print"";

    echo ""; or print"";

    Does it make any difference to wap users and browsers which one you use? or does it not matter,
    also in wap coding should you use " or '

    example:
    Code:
    echo "Hello World";
    
    echo 'hello world';
    
    print "hello world";
    
    print 'hello world';
    I know that all these work in theory but I have heard some people say that some give errors in wap.
    Is this true? And if so then which?



    /tease.gif" style="vertical-align:middle" emoid="" border="0" alt="tease.gif" />t;line-height:100%">Please only reply if you have something good to say, dont just say dont know!

    #2
    When I got the uglymonkey toplist it was a mix of echo n print, I removed all the prints n changed them to echos! There was then no errors that others have, were some phones cant viwt the toplist!

    Obviously there is cases were u must use ' or " but in the one ur talking about im not sure, ive always used echo " ";

    Comment


      #3
      PHP started echo thus PHP owns it.
      Print was a statement in pearl.
      Printf in C.
      Scanf in C.
      Also , '##' type of comments is owned by pearl.
      And '/**/' type by C.

      I think it doesent matter with echo or print
      but i dont mind using print.

      Comment


        #4
        I heard that fastest is echo " "

        Comment


          #5
          echo is shorter
          thats why i prefere it

          and if you are using
          Code:
          echo 'hello world';
          instead of
          Code:
          echo "Hello World";
          the script load time is faster, eg. for chat script.....
          Advertise your mobile site for FREE with AdTwirl

          Comment


            #6
            cool ,so fastest is
            Code:
            echo 'something';

            Comment


              #7
              I had mostly used print for my site.

              Comment


                #8
                I had mostly used print for my site.[/b]
                Oh no! So did I!

                Comment


                  #9
                  I too,and clint clean your inbox ,it's full!!!

                  Comment


                    #10
                    But whats wrong with print"";.It also works fine.java script:emoticon('', 'smid_10')

                    Comment


                      #11
                      Before i used echo, but now i using only print
                      Why? I don't know!!!

                      Comment


                        #12
                        echo is shorter
                        thats why i prefere it

                        and if you are using
                        Code:
                        echo 'hello world';
                        instead of
                        Code:
                        echo "Hello World";
                        the script load time is faster, eg. for chat script.....[/b]
                        Its because all chars are stored in array or a pointer.
                        A single char takes 2 bit of memo.
                        A capital char takes a bit for than that.
                        A numerical takes 1 bit.
                        A float takes 1-3 .

                        Learn C , as it makes PHP easier.

                        Comment


                          #13
                          i use echo in all my codin. i never use print n it works fine.

                          Comment


                            #14
                            nothing but I always use echo ,as said somebody it is shorter

                            Comment


                              #15
                              I too started using echo now and its good.

                              Comment

                              Working...
                              X