<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>урок</title> </head> <body> <?php $langs [ 'ru'=>['пн', 'вт', 'ср', 'чт', 'пт', 'сб', 'вс'], 'en'=>['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su'] ]; echo $langs['ru'][0].', '.$langs['en'][2] ?> </body> </html> 

Closed due to the fact that off-topic participants Anton Shchyrov , Visman , Petit , Edward , Nicolas Chabanovsky Mar 19 '18 at 6:34 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Anton Shchyrov, Visman, Petty, Edward, Nicolas Chabanovsky
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 3
    $langs [ assignment mark where? - teran pm

1 answer 1

You must add an assignment statement. It should turn out like this:

 $langs = [ 'ru'=>['пн', 'вт', 'ср', 'чт', 'пт', 'сб', 'вс'], 'en'=>['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su'] ]; 
  • Thank you, I understood everything last time :) - fromillia