Ben PHP dize eşleme ile sorun yaşıyorum.
Ben benim sayfa 2 html elemanları var, ben bir kopyası buradan Kundakçı ile içerik yapıştırılan ettik
<div class="field-item odd">
<div class="field-label-inline-first">
Year:</div>
2009 </div>
<div class="field-item odd">
<div class="field-label-inline-first">
Synopsis:</div>
<br />
</div>
Bu php satır (2009 ile eleman tespit edilir) mükemmel çalışır
<?php if ($items[0]['view'] == '2009') : echo "ok"; ?>
Ancak ben
elementi içeren dize eşleşmesi mümkün değilim:
<?php if ($items[0]['view'] == '<br />') : echo "ok"; ?> //doesn't work
<?php if ($items[0]['view'] == '<br />') : echo "ok"; ?> //again doesn't work
Herhangi bir ipucu?
To give you some context:
The strings are produced by CKEditor, an editor I'm using in my Drupal back-end. When I leave empty this editor, the
tag is displayed on the string as plain text (because I set "plain text" as formatting option in the back-end)
Teşekkürler