Hi Can anyone please let me know if we can use the built-in php function inside the twig.if file and not why. How can I access the built-in php function inside the twig file.
Because in the application for 100 time we need to check many conditions of the basis of the built-in php function. I tried to use the in_array () function to check for multiple vaslue selected in the multiple drop-down list, but I get the error Is_array () not defined.
Please, help
thank
@DonCallisto Said, PHP . , php . , , .
SoC. . , twig (, , ).
. , php. twig, php. , php in_array,
:
php twig?
, @DonCallisto. . , . , , php builtin , Extension. php- php _. , in_array, php_in_array().
!
Twig php, . , in_array() php - in twig.
in_array()
in
- ,
Source: https://habr.com/ru/post/1534005/More articles:How to get already running UILocalNotification - iosHow to remove sms from the inbox? - androidPassing dynamic data from a div to another div on the same page - jqueryOSX Pillow Incompatible library version libtiff.5.dylib & libjpeg.8.dylib - pythonHow to wrap datetimepicker js in AngularJS directive - javascriptThe difference between str [0] and str.charAt (0) - javascriptWhat do ios apps do when they boot? - performanceSelect a row from the data.table with the minimum value - rНежное введение в Haskell: ".... нет единого типа, который содержит как 2, так и" b ". Не могу ли я сделать такой тип? - scalaInno-setup package of all files in a folder except 1 file - inno-setupAll Articles