Keşfet

How can I reduce this template-style expression

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,211
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
I have this code:
Code:

in_array($xf.uri, ['/pick-the-winner/', '/pick-the-winner/picks/', '/pick-the-winner/history/', '/pick-the-winner/history/events/', '/pick-the-winner/picks/member/'])

I want to simplify the code to display the widget with any url with /pick-the-winner/ in it. How would I go about this?


Thanks,
Itworx4me
 

Konu görüntüleyen kullanıcılar

Geri
Üst Alt