Jump to content

Strange extracting from an array or bad documentation


Recommended Posts

In the documentation (http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module#CreatingaPrestaShopmodule-Creatingthemodule%27sbackofficetab%2Canditsclass) I saw strange thing:

$language['id_lang'|'id_lang']

Is this just bug in documentation or is it sensible?

Bitwise OR would cast string to integer and then sum the bits from each.

 

Or there is some magical [ | ] array operator unknown to me.

Can anyone explain this code?

Link to comment
Share on other sites

×
×
  • Create New...