Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   what is open and close parenthesis in php (https://www.warriorforum.com/programming/1079081-what-open-close-parenthesis-php.html)

TAHERSYED34 30th May 2015 12:51 PM

what is open and close parenthesis in php
 
example below:

( 'content', get_post_format() );


thanks again

Weblin 30th May 2015 10:44 PM

Re: what is open and close parenthesis in php
 
I think before posting a thread for this, you should understand the syntax of the programming language you are learning. PHP syntax and semantics - Wikipedia, the free encyclopedia

yasar 31st May 2015 10:41 AM

Re: what is open and close parenthesis in php
 
open parenthesis (

Close parenthesis )

Its used to define a function

Member8200 31st May 2015 07:07 PM

Re: what is open and close parenthesis in php
 
Parenthesis is used to create a function, this is for example:

if (filter_var($int, FILTER_VALIDATE_INT, array("options" => array("min_range"=>$min, "max_range"=>$max))) === false) {
echo("Variable value is not within the legal range");

cdebbie 1st June 2015 03:35 PM

Re: what is open and close parenthesis in php
 
They're used to create/define a function.

SandraSchmidt12 6th June 2015 06:25 AM

Re: what is open and close parenthesis in php
 
PHP is a procedural and object oriented language for coding webpage markup text to be transformed into html format.The PHP syntax and semantics are the format and the related meaning of the text and symbols in the PHP programming language.
The open parenthesis in php is:
(
The close parenthesis in php is:
)

ex:
mysql_connect("localhost","db_username","db_passwo rd")


All times are GMT -6. The time now is 11:14 PM.