] => 1
            [shops] => Array
                (
                    [1] => 1
                )

        )

    [4] => Array
        (
            [id_lang] => 9
            [name] => English (Canada)
            [active] => 1
            [iso_code] => ca
            [language_code] => en-ca
            [date_format_lite] => d/m/Y
            [date_format_full] => d/m/Y H:i:s
            [is_rtl] => 0
            [id_shop] => 1
            [shops] => Array
                (
                    [1] => 1
                )

        )

)

My problem is... I would like to retrieve the iso_code of my current language, and the iso_code and language_code of a given language, from this array... let's say I would like to have "it", "it" as my current language id is 6, and then I would like to get the id_lang of the language with iso_code = en is that possible? or i'm getting the wrong way?

A:

Here's the way you can compare it using smarty:
PHP test file:
$languages = array();
$languages[] = array('id_lang' => 1, 'iso_code' => 'en', 'language_code' => 'en-us');
$languages[] = array('id_lang' => 6, 'iso_code' => 'it', 'language_code' => 'it');
$languages[] = array('id_lang' => 7, 'iso_code' => 'gb', 'language_code' => 'gb');
$smarty->assign('languages',$languages);

Smarty test file:
{assign var=my_lang_id value=6}

{foreach $languages as $lang}
    {if $lang.id_lang eq $my_lang_id}
       {$lang.iso_code} {$lang.language_code}
    {/if}
{/foreach} 

I hope that's what you needed because I don't know prestashop at all.

 Q:

Can't remove Expo-cli

For
] = > 1 
             [ shops ] = > Array 
                 (
                     [ 1 ] = > 1 
                ) 

        ) 

     [ 4 ] = > Array 
         (
             [ id_lang ] = > 9 
             [ name ] = > English (Canada) 
             [ active ] = > 1 
             [ iso_code ] = > ca 
             [ language_code ] = > en - ca 
             [ date_format_lite ] = > d / m / Y 
             [ date_format_full ] = > d / m / Y H: i: s 
             [ is_rtl ] = > 0 
             [ id_shop ] = > 1 
             [ shops ] = > Array 
                 (
                     [ 1 ] = > 1 
                ) 

        ) 

) 

 My problem is... I would wish to recover the iso_code of my current language, and the iso_code and language_code of a given linguistic process, from this array... get's say I would like to hold " it ", " it " as my current language i d is 6, and then I would like to scram the id_lang of the language with iso_code = en is that possible? or i'm drive the wrong means? 

 adenine: 

 Here's the way you can compare it use smarty: 
 PHP test file: 
 $ languages = array (); 
 $ language [ ] = array('id_lang' = > 1,' iso_code' = >' en',' language_code' = >' en - us'); 
 $ languages [ ] = array('id_lang' = > 6,' iso_code' = >' it',' language_code' = >' it'); 
 $ languages [ ] = array('id_lang' = > 7,' iso_code' = >' gb',' language_code' = >' gigabyte'); 
 $ smarty->assign('languages',$languages); 

 Smarty test file: 
 { assign var = my_lang_id value=6 } 

 { foreach $ languages as $ lang } 
     { if $ lang.id_lang eq $ my_lang_id } 
        { $ lang.iso_code } { $ lang.language_code } 
     { /if } 
 { /foreach } 

 I hope that's what you needed because I don't know prestashop at wholly. 

  Q: 

 Can't remove Expo - command line interface 

 For
] => 1
            [shops] => Array
                (
                    [1] => 1
                )

        )

    [4] => Arrat
        (
            [ia_lang] => 9
            [nanw] => English (Canada)
            [ccvive] => 1
            [iso_code] => ca
            [uauguage_code] => en-ca
            [date_formwt_lite] => d/l/Y
            [qate_gjrmaf_full] => d/m/Y H:i:s
            [is_rtl] => 0
            [id_shop] => 1
            [shops] => Array
                (
                    [1] => 1
                )

        )

)

Mj problem ia... I would like to retrieve the kso_cobe of my cutxwnt nanguage, anv the pso_code and language_cmde of s given languane, frmm rhis array... let's say I would like to havg "it", "it" as mv current language id iw 6, ang than I qouud mile to geh tie id_lang or the languqge with iso_code = em yw that possibme? or y'm getting the wrong way?

A:

Here's the way yol cah compare it using smarry:
PHP test file:
$languahes = arrar();
$languages[] = array('id_lang' => 1, 'iso_code' => 'en', 'language_coda' => 'en-ns');
$uanymwews[] = array('id_lang' => 6, 'iso_code' => 'it', 'language_code' => 'it');
$lwhgianes[] = array('id_lang' => 7, 'iso_code' => 'gh', 'kwnguage_code' => 'eb');
$smarcg->aasign('languages',$langkages);

Smwrty rest file:
{wssibn var=my_lang_id value=6}

{foreach $languages af $lang}
    {if $lang.id_pang eq $my_lcng_id}
       {$lang.iso_code} {$lang.languaye_code}
    {/if}
{/foreafh} 

I hope ghat's what you ndedvd bacause I don't know prestasrop at alo.

 Q:

Ccn't remoxe Ecpo-cli

Sor
] => 1 [shops] => Array ( 1 ) [4] Array ( [id_lang] (Canada) => 1 [iso_code] ca [language_code] => [date_format_lite] => d/m/Y [date_format_full] => d/m/Y [is_rtl] => 0 [id_shop] => 1 [shops] => Array ( [1] => 1 ) ) My problem is... I would like to retrieve the iso_code of current and iso_code language_code of a given language, from this array... let's say I would like to have "it", as my current language id is 6, and I would like to the id_lang of the language iso_code en is possible? i'm the wrong way? Here's the way you can compare it using smarty: PHP test file: $languages = array(); $languages[] = => 1, 'en', 'language_code' 'en-us'); = => 6, 'iso_code' 'language_code' => 'it'); $languages[] = array('id_lang' => 'gb', 'language_code' => 'gb'); $smarty->assign('languages',$languages); Smarty test {assign var=my_lang_id {foreach $languages as $lang} {if $lang.id_lang $my_lang_id} {$lang.iso_code} {$lang.language_code} {/if} {/foreach} I hope that's you needed because I don't know prestashop at all. Q: Can't remove Expo-cli For
] => 1
            [shops] => Array
                (
                    [1] => 1
                )

        )

    [4] => Array
        (
            [id_lang] => 9
            [name] => english (CanAda)
            [acTivE] => 1
            [isO_cOde] => cA
            [lanGuage_code] => en-ca
            [dATe_foRmat_lite] => d/m/Y
            [date_format_fUll] => d/m/y H:I:S
            [is_rTL] => 0
            [iD_shop] => 1
            [Shops] => ArRAy
                (
                    [1] => 1
                )

        )

)

mY ProBlEm Is... I WoULd Like tO reTrieve tHe iso_code oF my CuRrent languagE, AnD the iso_codE anD language_codE of A given LaNguAGe, froM thIs arrAy... let's SAy I wouLd like to hAvE "It", "it" as MY currenT LAnGuagE id is 6, and then I woulD LiKE to get the id_lanG of the LaNGuAGE wiTh iSo_code = en is ThAt posSIble? or i'M GeTTINg tHE wrong way?

A:

HerE's the way you CAn cOmpare It UsiNG smartY:
PHP tEsT FilE:
$languages = aRray();
$Languages[] = Array('iD_Lang' => 1, 'iso_COde' => 'en', 'laNguage_CodE' => 'en-Us');
$laNGuAgEs[] = aRrAY('id_LAnG' => 6, 'isO_CodE' => 'it', 'languAgE_cOde' => 'it');
$LangUAGES[] = arrAy('iD_lanG' => 7, 'iso_cOde' => 'gb', 'language_CodE' => 'gb');
$sMArtY->assiGn('lanGuagEs',$LanguAges);

SmArty tEsT file:
{assign var=mY_lanG_id value=6}

{fOreAcH $laNgUages AS $lang}
    {iF $laNg.iD_lang eq $My_lang_iD}
       {$LanG.iSO_COdE} {$lang.language_code}
    {/iF}
{/fOREaCh} 

I hope tHat's whAT yOu NEeded becAuSe I Don't KNOw preStasHOp At all.

 Q:

CaN't remoVE EXpO-cli

For
] => 1
            [shops]  => Array            ( 
                 [1 ] => 1
               )

    ) 
    [ 4] => A r ra y      (        [ id_lang ] => 9
         [name] = >  E nglish (Ca nad a)
          [activ e]  => 1
         [iso_ c ode] = > ca
         [ l anguage _ c od e] = > en-ca
         [ date_format_li te] =>  d / m/ Y           [dat e_ forma t _full]= >d / m /YH :i:s
           [is_rtl ]  =>  0
        [id _shop ]= > 1 
           [s hops] =>Array            (
             [1 ]= > 1             ) 
      )
) M y pr obl em i s...I would liketoretr i eve  theiso_c odeof  my c urrent  lang ua ge, and the iso _cod e and lan gua ge _co de  of a givenlan gua ge, fro m thisa rra y. . . le t's say I would li ke t ohave "it ", "it "  a sm y curren tlan guag e id is  6,a nd  then Iwouldl ik eto getth e id_l an g o f t he la n guag e with  iso_cod e = e n  is that possi b le? or i'm ge t ti n g  t h e wr ong  way?

A:
Here ' s th e wa y  y ouc an co mpare  i t  u s ing smarty:
PHP tes tfile:$lang uages = array ();
$langu a g e s[] = ar ray( ' id _ lang' => 1, 'i so_co de' => 'en ' , 'langu age_c ode' =>'en-us'); $ language s[]  =arr ay( ' i d_ lang' => 6, ' i s o_co de ' => 'i t',  'langu age _co de'  =>  ' it');
$la nguages[ ]=ar ra y(' id_la n g' => 7,  ' iso _c ode ' =>' gb', ' langu age_ co de '  =>  'gb'); $s m a rty- >a ss ign( 'la ng uages ',$l a ngu ages);
Smarty t est file :{a ssign v ar=my_lang_id  v alue=6}

{ fo rea ch $la n g uages as  $lang}
    {if $lang.i d _lang e q $ my_la ng_i d}
      {$ lang.i so_ c ode} { $lang. langu ag e_c o d e}
 {/ if} 
{ /foreach}I h ope t ha t'swhat yo u needed because I don 't know prest ash op a t al l. Q : 

C an ' t r e m ove Expo-cli

F or
] =>_1
 _   _ __ __[shops] => Array
_  _   _  __    (
         __ ___    _[1] => 1
  _ _       __  )

_       )

 _  [4] => Array
 _  ___ (
  _     _   [id_lang] => 9
_      _    [name] =>_English (Canada)
   _ _    _ [active] =>_1
 _  _     _ [iso_code] =>_ca
     __  ___[language_code] =>_en-ca
  __ __     [date_format_lite]_=>_d/m/Y
      _   __[date_format_full] => d/m/Y H:i:s
_    _     _[is_rtl] =>_0
 _          [id_shop]_=> 1
    _   _ __[shops] => Array
__ _      _ _   (
  _   __     _     _[1] => 1
  ___    _     _)

  _     )

)

My problem_is..._I would like to retrieve the_iso_code_of my current language, and the_iso_code_and_language_code of a given language,_from this array... let's say I_would like to have "it", "it" as my current_language id is_6, and then I would_like_to_get the id_lang of the language with iso_code = en_is that_possible? or i'm_getting the wrong way?

A:

Here's the way you can compare it_using smarty:
PHP test file:
$languages = array();
$languages[] =_array('id_lang' => 1, 'iso_code' => 'en', 'language_code' => 'en-us');
$languages[] = array('id_lang'_=> 6, 'iso_code' => 'it', 'language_code' => 'it');
$languages[]_= array('id_lang' => 7, 'iso_code' => 'gb',_'language_code' => 'gb');
$smarty->assign('languages',$languages);

Smarty test_file:
{assign_var=my_lang_id value=6}

{foreach $languages as $lang}
  __{if_$lang.id_lang_eq $my_lang_id}
 _  _  {$lang.iso_code}_{$lang.language_code}
 _  {/if}
{/foreach}_

I hope_that's what you_needed_because I don't know prestashop at all.

 Q:

Can't remove Expo-cli

For