Documentation / Tutorials / Generic,Quick Samples

Explicitly create variables with specific datatypes in Awesome

/ Generic,Quick Samples / Explicitly create variables with specific datatypes in Awesome

Since in WordPress anything in the shortcode is treated as a string value, we have provided the ability to explicitly create variables with specific datatype within the Awesome Enterprise shortcodes.

We support the following four create functions:

  1. Number : – this will create number (float) variable
  2. String: – this will create string variable
  3. Integer: -this will create integer variable

 

Create number values – [num.create /]

  • Modify value to Float

 

Create str values – [str.create /]

  • Modify value to Float

 

Create int values – [int.create /]

  • Modify value to integer

 

Examples

array(3) 

[

“num_check” => float(40.3)

“str_check” => string(3) “this is string”

“int_check” => int(5)

]

Categories
Most Popular

Leave a Reply

Your email address will not be published.