Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon
  • Privacy Policy

in_array 的寫法

2008/02/20 by Monster

避免 $user_list 是空的 array 時 出現 Warnning

if ( is_array($user_list) && in_array($user_id,$user_list) ) {
// do something!
}

Categories Programming/php
Post navigation
Splitting a large Apache log file with PHP
判斷瀏覽器 XMLHttpRequest 的方式 / IE7

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Blogroll

  • 02 浪況預測
  • Cloudflare
  • Email
  • G Suite admin console
  • gandi
  • GCP console
  • Google AdSense
  • Google Analytics
  • OVH
  • ★Amazon AWS console

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2022 Monster Oasis • Built with GeneratePress