اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

PHP اسئلة واجوبة المقابلات

Test your skills through the online practice test: PHP Quiz Online Practice Test

فروقات ذات صلة

PHP vs JSP

سؤال 16. I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP?

On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split().

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 17. What's the difference between htmlentities() and htmlspecialchars()?

htmlspecialchars only takes care of <, >, single quote ', double quote " and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 18. What's the difference between md5(), crc32() and sha1() crypto on PHP?

The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 19. So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

Crypto usage in PHP is simple, but that doesn't mean it's free. First off, depending on the data that you're encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 20. How do you match the character ^ at the beginning of the string?

^^

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 
htmlentities() and htmlspecialchars()? 3) What's the difference between md5(), crc32() and sha1() crypto on PHP? 4) So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()? 5) How do you match the character ^ at the beginning of the string? " />

الاكثر فائدة حسب تقييم المستخدمين:

حقوق النشر © 2026، WithoutBook.