Browse All Fiddles


Basket #167547

Created: 1533676764
View "Basket #167547"
<mvt:assign name="g.foo" value="'#this is my test text#'" /> &mvte:global:foo;<BR></BR> <mvt:assign name="g.foo" value="substring(g.foo, 2, len(g.foo) - 2))" /> &mvte:global:foo;
 

Basket #167311

Created: 1533592975
View "Basket #167311"
&mvt:system:time_t;
 

Basket #167309

Created: 1533592929
View "Basket #167309"
&mvt:system:dyn_t_time;
 

trim off first and last character of a string

trim off first and last character of a string to get rid of the 1st and last chars
Created: 1533316451
View "trim off first and last character of a string"
<mvt:assign name="g.foo" value="'#this is my test text#'" /> &mvte:global:foo;<BR></BR> <mvt:assign name="g.foo" value="substring(g.foo, 2, len(g.foo) - 2))" /> &mvte:global:foo;
 

Basket #166763

Created: 1533316386
View "Basket #166763"
<mvt:assign name="g.foo" value="'#this is my test text#'" /> &mvte:global:foo;<BR></BR> <mvt:assign name="g.foo" value="substring(g.foo, 2, len(g.foo) - 2))" /> &mvte:global:foo;
 

Basket #166761

Created: 1533316366
View "Basket #166761"
<mvt:assign name="g.foo" value="'#this is my test text#'" /> &mvte:global:foo; <mvt:assign name="g.foo" value="substring(g.foo, 2, len(g.foo) - 2))" /> &mvte:global:foo;
 

Basket #166759

Created: 1533316330
View "Basket #166759"
<mvt:assign name="l.settings:global:foo" value="'#this is my test text#'" /> &mvte:global:foo; <mvt:assign name="l.settings:global:foo" value="substring(l.settings:global:foo, 2, len(l.settings:global:foo) - 2))" /> &mvte:global:foo;
 

Basket #166757

Created: 1533316313
View "Basket #166757"
<mvt:assign name="g.foo" value="'#this is my test text#'" /> &mvte:global:foo; <mvt:assign name="l.settings:global:foo" value="substring(l.settings:global:foo, 2, len(l.settings:global:foo) - 2))" /> &mvte:global:foo;
 

Basket #166631

Created: 1533256211
View "Basket #166631"
//Standard encoding <mvt:assign name="g.no_encoding" value="'This is not encoded'" /> Output: &mvt:global:no_encoding; </br></br> //Entity Encoding <mvt:assign name="g.myvariable" value="'<script> alert (\"oh no\")</script>'" /> Output: &mvte:global:myvariable; </br></br> //Attribute Encoding <mvt:assign name="g.attribute_encoded" value="'This is attribute, encoded'" /> Output: &mvta:global:attribute_encoded;
 

Basket #166353

Created: 1533238846
View "Basket #166353"
// A structure which contains an array, which contains a structure. <mvt:assign name="l.settings:customer[1]:info:name" value="'John'" /> <mvt:assign name="l.settings:customer[1]:info:birthday" value="'01/01/01'" /> <mvt:assign name="l.settings:customer[1]:info:address" value="'123 Address'" /> </br> </br>&mvt:customer[1]:info:name; </br>&mvt:customer[1]:info:birthday; </br>&mvt:customer[1]:info:address;
 

Basket #166348

Created: 1533238655
View "Basket #166348"
<mvt:assign name="l.settings:days[1]" value="'Sunday'" /> <mvt:assign name="l.settings:days[2]" value="'Monday'" /> <mvt:assign name="l.settings:days[3]" value="'Tuesday'" /> <mvt:assign name="l.settings:days[4]" value="'Wednesday'" /> <mvt:assign name="l.settings:days[5]" value="'Thursday'" /> <mvt:assign name="l.settings:days[6]" value="'Friday'" /> <mvt:assign name="l.settings:days[7]" value="'Saturday'" /> <mvt:assign name="l.settings:meals[1]" value="'Breakfast'" /> <mvt:assign name="l.settings:meals[2]" value="'Lunch'" /> <mvt:assign name="l.settings:meals[3]" value="'Dinner'" /> <ul> <mvt:foreach iterator="day" array="days"> <li> <h2>&mvt:day;</h2> <p> l.pos1=<mvt:eval expr="l.pos1" /><br> l.count1=<mvt:eval expr="l.count1" /><br> </p> <ul> <mvt:foreach iterator="meal" array="meals"> <li> <h4>&mvt:meal;</h4> <p> l.pos2=<mvt:eval expr="l.pos2" /><br> l.count2=<mvt:eval expr="l.count2" /><br> </p> </li> </mvt:foreach> </ul> </li> </mvt:foreach> </ul>
 

Basket #166274

Created: 1533183444
View "Basket #166274"
<mvt:eval expr="crypto_rand_bytes( 6 )" />
 

Basket #166272

Created: 1533183438
View "Basket #166272"
<mvt:eval expr="crypto_rand_bytes( 7 )" />
 

Basket #166270

Created: 1533183280
View "Basket #166270"
<mvt:do file="g.Module_Library_Utilities" name="l.output" value="AlphaNumericOnly( crypto_base64_encode( crypto_rand_bytes( 7 ) ) )" /><mvt:eval expr="l.output" />
 

Basket #166268

Created: 1533183266
View "Basket #166268"
<mvt:do file="g.Module_Library_Utilities" name="l.output" value="AlphaNumericOnly( crypto_base64_encode( crypto_rand_bytes( 10 ) ) )" /> <mvt:eval expr="l.output" />
 

Basket #166265

Created: 1533183165
View "Basket #166265"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 7 ) ), '+', '_' )" />
 

Basket #166263

Created: 1533183141
View "Basket #166263"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 5 ) ), '+', '_' )" />
 

Basket #166261

Created: 1533183135
View "Basket #166261"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 3 ) ), '+', '_' )" />
 

Basket #166259

Created: 1533183123
View "Basket #166259"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 16 ) ), '+', '_' )" />
 

Basket #166257

Created: 1533183114
View "Basket #166257"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 10 ) ), '+', '_' )" />
 

Basket #166255

Created: 1533183106
View "Basket #166255"
<mvt:eval expr=" glosub( crypto_base64_encode( crypto_rand_bytes( 36 ) ), '+', '_' )" />
 

Basket #166235

Created: 1533171536
View "Basket #166235"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 6'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '1' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166233

Created: 1533171521
View "Basket #166233"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 6'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '-4' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166231

Created: 1533171508
View "Basket #166231"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '-4' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166229

Created: 1533171496
View "Basket #166229"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '-3' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166227

Created: 1533171461
View "Basket #166227"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '-2' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166225

Created: 1533171447
View "Basket #166225"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '2' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166223

Created: 1533171430
View "Basket #166223"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '1' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166221

Created: 1533171416
View "Basket #166221"
<mvt:assign name="l.settings:shippingMethods[1]:title" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:title" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:title" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:title" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:title" value="'value 5'" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, title, '-1' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>
 

Basket #166219

Created: 1533171358
View "Basket #166219"
<mvt:assign name="l.settings:shippingMethods[1]:name" value="'value 1'" /> <mvt:assign name="l.settings:shippingMethods[2]:name" value="'value 2'" /> <mvt:assign name="l.settings:shippingMethods[3]:name" value="'value 3'" /> <mvt:assign name="l.settings:shippingMethods[4]:name" value="'value 4'" /> <mvt:assign name="l.settings:shippingMethods[5]:name" value="value 5" /> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr> <mvt:do file="g.module_library_utilities" name="l.null" value="QuickSortArray(l.settings:shippingMethods, name, '-1' )" /> <h2>After</h2> <mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:shippingMethods), ',', '<br>'))" /> <hr>