PHP if statement display always the same -


short question doing wrong?

<?php  if ($arritem['text']['kachelband_de_external_link'] = "1"){     echo 'target="_blank"'; } else{  } ?> 

i output: target="_blank", if "$arritem['text']['kachelband_de_external_link']" = 0

because doing assignment operation instead of comparison on if statement.

should

if ($arritem['text']['kachelband_de_external_link'] == "1") 

see 2 equal signs ?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -