-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

Showing posts with label PHP 7 Tutorial HyperText Preprocessor. Show all posts
Showing posts with label PHP 7 Tutorial HyperText Preprocessor. Show all posts
  • PHP constant - constant Array - constant global






    Constant is an identifier with a simple value whose value cannot be changed during script running.

    A valid Constant name begins with a letter and underscore  (no $ sign before the constant name).

    Note: Unlike variables, constants are automatically global across the entire script. PHP constant - constant Array - constant global


    Syntax


    define (name, value, case-sensitive)


    Parameterts :


    • name : Specifies the name of the constant
    • value : Specifies the value of the constant
    • case-sensitive : Specifies the wheteher the constant name should be case-insensitive. Default is false.

    ( NOTE : To create constant, use the define() funciton )




    Example 

    Create a constant with a case-sensitive name:



    // case-sensitive constant name

    define("GREETING", "Welcome to kumaratuljaiswal.in");

    echo GREETING;



    ?>



    </body>
    </html>





    Welcome to kumaratuljaiswal.in!





    Example 

    Create a constant with a case-insensitive name:



    // case-insensitive constant name

    define("GREETING", "Welcome to kumaratuljaiswal.in", true);

    echo GREETING;



    ?>



    </body>
    </html>





    Welcome to kumaratuljaiswal.in




    PHP Constant Arrays

    In PHP7, you can create an Array constant using the define() function.


    Example 

    Create a constant with a case-insensitive name:



    define("person", [
      "HackerBoY",
      "Atultheahacker",
      "Kumar"
    ]);
    echo cars[0];



    ?>



    </body>
    </html>




    HackerBoY







    Constants are Global

    Constants are automatically global and can be used across the entire script.


    Example


    This example uses a constant inside a function, even if it is defined outside the function:





    define("GREETING", "Welcome to hackingtruth.in");

    function myTest() {

    echo GREETING;

    }

    myTest();




    ?>



    </body>
    </html>





    Welcome to hackingtruth.in




    Video on This Topic :- Soon


    I hope you liked this post, then you should not forget to share this post at all.
    Thank you so much :-)




  • PHP random number



    PHP random number




    The PHP rand() function generates a random number :
    The rand() is an inbuilt-function in PHP used to generate a random number.  PHP random number



    Syntax

    rand()



    Example 

    echo(rand());

    echo "<br>";




    ?>



    </body>
    </html>




    465768456







    To get more control over the random number, you can add the optional min and max parameters to specify the lowest integer and the highest integer to be returned.

    For example, if you want a random integer between 10 and 100 (inclusive), use rand(10, 100):




    Example 



    echo(rand(10, 200));

    echo "<br>";




    ?>




    </html>





    154


    Note

    If the min and max value is not specified, default is 0 and getrandmax() respectively.


    Example


    • rand() will return a random integer between 0 and getrandmax().
    • rand(15,35) will return a random integer in the range [15,35].




    Example 

    $rndmNmbr = rand();

    // print

    print_r($rndmNmbr);

    // new line

    echo "<br>";

     // Generating a random number in a specified range

    $rndmNmbr = rand(12, 55);

    // print

     print_r ($rndmNmbr);


    ?>




    </html>




    56677465
    108


    Note :
    The output of the code may change every time it is run. So the output may not match with the specified output.



    Output 


    4546345
    45







    Video on This Topic :- Soon


    I hope you liked this post, then you should not forget to share this post at all.
    Thank you so much :-)



  • PHP abs function





    The abs() function is an inbuilt function in PHP which is used to return the absolute (positive) value of a number. The abs() function in PHP is identical to what we call modulus in mathematics. The modulus or absolute value of a negative number is positive. PHP abs function  phpmyadmin exploit510
    phpmyadmin 2.11.11.3 exploit80
    phpmyadmin 3.2.0.1 exploit55
    phpmyadmin 5.6 exploit50
    phpmyadmin exploit metasploit



    Syntax

    abs ( value )




    Example 

    echo(abs(-83.23));

    echo "<br>";

    echo(abs(83.23));


    ?>



    </body>
    </html>





    83.23

    83.23






    OR



    Example 


    echo(abs(-831.23));

    echo "<br>";

    echo(abs(832.23));



    ?>





    </html>





    831.23

    832.23










    Video on This Topic :- Soon


    I hope you liked this post, then you should not forget to share this post at all.
    Thank you so much :-)




  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.