Всем привет! я тут в очередной раз наткнулся на предупреждение от пхп инспекшена что юзайте "=== null" вместо is_null() и решил таки затестить, а есть ли реальный смысл в этом. в общем сделал массив из 10 000 элементов и вот что вышло: для версии 5.6 php - Testing with === 0.0006098747253418 Testing with is_null() 0.0013628005981445 получается === быстрее в два раза чем is_null для версии 7: Testing with === 0.00031208992004395 Testing with is_null() 0.00028300285339355 получается is_null() даже быстрее короче, в итоге что могу сказать... не заморачивайтесь, и смело можно юзать оба варианта :) в производительности не теряется ничего в обоих случаях, если вы используете 7 пхп и выше
First time in my life I needed to add placeholder for dropdown O.o I even didn`t know that it exists. But, anyway, I need to implement this case. I selected selectpicker from bootstrap to have ability to use live searching in dropdown. HTML for adding dropdown: <select class="dropdown" data-live-search="true"> <option class="hide" value="" disabled selected hidden>Placeholder</option> <option value="option1">Option 1</option> </select> Javascript: const select = $('select').selectpicker(); $('.dropdown').on('click', function () { $('.dropdown').find('.hide').hide(); });
When you try to upload standard Public Key to Zoho Desk with SAML authentication, you got an error. I resolved this issue by upload Certificate instead of Public Key. So honestly Zoho Desk is waiting for Certificate, not a Public Key, as it said on the SAML page ('Public Key (Provide Public Key in .txt or .pem extension file only)').
Comments