Updates from June, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • saif 12:15 pm on June 14, 2011 Permalink | Reply  

    isset() use techniques in php 

    isset

    isset() is the most commonly used php construct as well as a good friend of  a programmer. we frequently use it to check whether a variable has been set or not. it returns true if the variable has been set otherwise false… also return false if the variable has been set to null.

    isset() is the only one of the three language constructs that accepts an arbitrary amount of parameters. Its accurate prototype is as follows:

    <?php
    isset($var1, $var2, $var3, …);
    ?>
    It only returns true, if all the variables have been defined; otherwise, it returns false. This is useful when you want to check if the required input variables for your script have really been sent by the client, saving you a series of single isset() checks.

    So writing it with arbitrary parameters can be interesting upon your need! cheers!

    Advertisements
     
  • saif 1:53 pm on June 6, 2011 Permalink | Reply
    Tags: , site   

    Get website favicon by single line 

    Getting website favicon is more easy now. Google gave us many things till now to do and share web info, development and so on. Google gave a nice shared stuff to get any site’s favicon by a sigle line :

    http://www.google.com/s2/favicons?domain=yahoo.com

    So check out this for Yahoo’s favicon. By changing the desired site’s url, u can get any site’s favicon as well. Have fun and cheers!

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
%d bloggers like this: