Q. difference between C language and C++

c++ programming is an oops based using classes and
functions, c is an ordinary programming language

Q. what is nl2br?

nl2br — Inserts HTML line breaks before all newlines in a string
Example using nl2br()
<?php
echo nl2br("foo isn't\n bar");
?>

The above example will output:

foo isn't<br />
bar 

nl2br() means newline to break. Actually when we retrieve
data from database using PHP mysql code, the nl2br()
function helps to get the format to maintain the sequence as
was at the time of insertion.

Q. what is the difference between php and my sql

php(Hypertext preprocessor) also called as personal home
page is a type of server side scripting language....
while my sql is an open source database software.....

Q.: “$this” what type of object it is?

$this represents the current working class.
if you are accessing the variable or function with in the
same class then $this represents the current working object.
for ex:

class Test{

    function fn_testing($a)
    {
      $a++;
      return $a;

    }
  $c=$this->fn_tesing(1);
}

Q. How can we submit a form without a submit button?

Using javascript
document.form.submit()

View full article »