#phptips search results

💡 ¿PHP espagueti? 📷 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: 📷 Cambios sin romper todo 📷 Fácil de probar Tú controlas CÓMO se hace. 📷#PHPTips #PHP #DependencyInjection

develoteca's tweet image. 💡 ¿PHP espagueti? 
📷 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: 📷 Cambios sin romper todo 📷 Fácil de probar Tú controlas CÓMO se hace. 📷#PHPTips #PHP #DependencyInjection

💡 ¿PHP espagueti? 🍝 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: ✅ Flexible ✅ Cambios sin romper todo ✅ Fácil de probar Tú controlas CÓMO se hace. ❤️ Comparte #PHPTips #PHP #DependencyInjection

oscaruhp's tweet image. 💡 ¿PHP espagueti? 🍝 ¡la inyección de dependencias (DI/Dependency Injection) te salva!
Es:
✅ Flexible
✅ Cambios sin romper todo
✅ Fácil de probar
Tú controlas CÓMO se hace.
❤️ Comparte #PHPTips
#PHP #DependencyInjection

📣 This JUST got merged in #PHP a few minutes ago! It is currently challenging to deal with recursion in anonymous functions. Not anymore in PHP 8.5: the "Closure::getCurrent()" method fetches the current closure you're in 🚀 PR: github.com/php/php-src/pu… #phptips

alexdaubois's tweet image. 📣 This JUST got merged in #PHP a few minutes ago!

It is currently challenging to deal with recursion in anonymous functions. Not anymore in PHP 8.5: the "Closure::getCurrent()" method fetches the current closure you're in 🚀

PR: github.com/php/php-src/pu…

#phptips

#PHPTips Need to sum up all the values in an array? Try using PHP's built-in array_sum function! It's a simple and efficient way to calculate the total, without the need for loops or variables. #PHP #codingtips

amrcodes's tweet image. #PHPTips Need to sum up all the values in an array? Try using PHP's built-in array_sum function! It's a simple and efficient way to calculate the total, without the need for loops or variables. #PHP #codingtips

PHP's array_filter for cleaner code! Here's how to remove all empty values from an array in just one line: This simple function call uses strlen to keep only non-empty strings. #PHP #PHPTips

aecarlosae's tweet image. PHP's array_filter for cleaner code! 

Here's how to remove all empty values from an array in just one line:

This simple function call uses strlen to keep only non-empty strings. #PHP #PHPTips

Use the `wp_nav_menu()` function to easily display custom navigation menus in your theme. Simply add it to your template file where you want the menu to appear: This function is highly customizable, allowing you to create dynamic menus with ease! #WordPress #PHPTips

freelancerguy_'s tweet image. Use the `wp_nav_menu()` function to easily display custom navigation menus in your theme. Simply add it to your template file where you want the menu to appear:

This function is highly customizable, allowing you to create dynamic menus with ease! #WordPress #PHPTips

🔗 PHP Tip: Use the nullsafe operator `(?->)` to avoid null pointer exceptions! 🤩 i.e: `$user?->username` No more pesky isset() checks or null checks! 💻 #PHPTips #NullSafety

realtauseed's tweet image. 🔗 PHP Tip: 

Use the nullsafe operator `(?->)` to avoid null pointer exceptions! 🤩

i.e: 
`$user?->username`

No more pesky isset() checks or null checks! 💻

#PHPTips #NullSafety

🚀 PHP Tip! 💻 Need to execute multiple SQL queries at once? 🤔 Use the `multi_query()` method! 💥 e.g: `$mysqli->multi_query("SELECT * FROM table1; SELECT * FROM table2;");` Executes multiple queries in a single call, reducing database connections! 💻 #PHPTips #MySQLHacks

realtauseed's tweet image. 🚀 PHP Tip! 💻

Need to execute multiple SQL queries at once? 🤔

Use the `multi_query()` method! 💥

e.g: `$mysqli->multi_query("SELECT * FROM table1; SELECT * FROM table2;");`

Executes multiple queries in a single call, reducing database connections! 💻

#PHPTips #MySQLHacks

Right way to secure your session. 💡Tips: #php #session #phptips #phptricks #security #xss #csrf

CodeSushil's tweet image. Right  way to secure your session.

💡Tips:
#php
#session
#phptips
#phptricks
#security
#xss #csrf

Here's a simple way to copy a string to the Windows Clipboard from a PHP CLI script. Use responsibly! #php #phptips

EmmaDSCodes's tweet image. Here's a simple way to copy a string to the Windows Clipboard from a PHP CLI script. Use responsibly! #php #phptips

🚀 PHP Tip: Use the `<<<` heredoc syntax to define multiline strings in PHP! 💻 i.e: `$multiLineString = <<<END This is a multiline string with multiple lines and no need for concatenation! END;` Goodbye, cumbersome concatenation! 👋 #PHPTips #CleanCode

realtauseed's tweet image. 🚀 PHP Tip: 

Use the `&amp;lt;&amp;lt;&amp;lt;` heredoc syntax to define multiline strings in PHP! 💻

i.e:
`$multiLineString = &amp;lt;&amp;lt;&amp;lt;END
This is a multiline string
with multiple lines
and no need for concatenation!
END;`

Goodbye, cumbersome concatenation! 👋

#PHPTips #CleanCode

Learn PHP With Me: if-else, switch, and Match expression. #php #learnPHP #phptips #Tips #tricks #CodeWithSushil #CONNECT

CodeSushil's tweet image. Learn PHP With Me: if-else, switch, and Match expression.

#php
#learnPHP
#phptips
#Tips
#tricks
#CodeWithSushil
#CONNECT

Is mysqli the old-school PHP player while PDO is the new kid on the block? Source: devhubby.com/thread/what-is… #PHPTips #Coding #PHPDevelopment #CodingTips #difference #bethedifference

devhubbycom's tweet image. Is mysqli the old-school PHP player while PDO is the new kid on the block?

Source: devhubby.com/thread/what-is…

#PHPTips #Coding #PHPDevelopment #CodingTips #difference #bethedifference

Need to reverse a string in #PHP? 💡Here are 2 ways to get the same output in a single line! Which one do you prefer? #PHPTips #Coding #WebDev

iharpreetbhatti's tweet image. Need to reverse a string in #PHP?

💡Here are 2 ways to get the same output in a single line!

Which one do you prefer? #PHPTips #Coding #WebDev

💡 PHP Tip: Make your code more flexible with `union types`! 🔩 Use `|` to specify multiple types for a single parameter or property, allowing for more flexibility. Example: `function greet(string|int $name): string { ... }` 🤩 Write more robust and adaptable code! #PHPTips

realtauseed's tweet image. 💡 PHP Tip: 

Make your code more flexible with `union types`! 🔩

Use `|` to specify multiple types for a single parameter or property, allowing for more flexibility.

Example: `function greet(string|int $name): string { ... }`

🤩 Write more robust and adaptable code! 
#PHPTips

If I use mysql_escape_string() in Yii, will it finally pass the vibe check or will it just vibe on its own?" Source: devhubby.com/thread/how-to-… #YiiTips #SQLTips #PHPTips #SecureWebDev #yiiframework #yii

devhubbycom's tweet image. If I use mysql_escape_string() in Yii, will it finally pass the vibe check or will it just vibe on its own?&quot;

Source: devhubby.com/thread/how-to-…

#YiiTips #SQLTips #PHPTips #SecureWebDev #yiiframework #yii

🔥 #PHP Tip 🔥 Use PHP's built-in functions like `array_map`, `array_filter`, and `array_reduce` to manipulate arrays in a concise and readable way. 🚀🔍 #PHPTips #PHPTricks #PHPDeveloper #LaravelCommunity #WebDevelopment #WebDev #CodeTips #CodingLife #CodingTips

alnahian2003's tweet image. 🔥 #PHP Tip 🔥

Use PHP&apos;s built-in functions like `array_map`, `array_filter`, and `array_reduce` to manipulate arrays in a concise and readable way. 🚀🔍

#PHPTips #PHPTricks #PHPDeveloper #LaravelCommunity #WebDevelopment #WebDev #CodeTips #CodingLife #CodingTips

Use add_meta_tags hook to inject dynamic SEO tags per post—boost CTR & search visibility 📈 ✅ Custom SEO logic = Better ranking power! #WordPress #PluginDev #PHPTips #SEOTips #WebDev #WPPlugin #CoreWebVitals #ContentMarketing #OpenSource

nrachabathuni's tweet image. Use add_meta_tags hook to inject dynamic SEO tags per post—boost CTR &amp;amp; search visibility 📈

✅ Custom SEO logic = Better ranking power!

#WordPress #PluginDev #PHPTips #SEOTips #WebDev #WPPlugin #CoreWebVitals #ContentMarketing #OpenSource

Finding the sum of the digits in a number is a standard programming task that can be solved in a variety of ways in PHP. 💻 Watch this and learn powerful techniques to sum PHP digits like a pro! #kalacademy #PHPtips #PHPcode #PHPcoder #PHPcoders #learnPHP #happychristmas


💡 ¿PHP espagueti? 🍝 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: ✅ Flexible ✅ Cambios sin romper todo ✅ Fácil de probar Tú controlas CÓMO se hace. ❤️ Comparte #PHPTips #PHP #DependencyInjection

oscaruhp's tweet image. 💡 ¿PHP espagueti? 🍝 ¡la inyección de dependencias (DI/Dependency Injection) te salva!
Es:
✅ Flexible
✅ Cambios sin romper todo
✅ Fácil de probar
Tú controlas CÓMO se hace.
❤️ Comparte #PHPTips
#PHP #DependencyInjection

💡 ¿PHP espagueti? 📷 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: 📷 Cambios sin romper todo 📷 Fácil de probar Tú controlas CÓMO se hace. 📷#PHPTips #PHP #DependencyInjection

develoteca's tweet image. 💡 ¿PHP espagueti? 
📷 ¡la inyección de dependencias (DI/Dependency Injection) te salva! Es: 📷 Cambios sin romper todo 📷 Fácil de probar Tú controlas CÓMO se hace. 📷#PHPTips #PHP #DependencyInjection

📣 This JUST got merged in #PHP a few minutes ago! It is currently challenging to deal with recursion in anonymous functions. Not anymore in PHP 8.5: the "Closure::getCurrent()" method fetches the current closure you're in 🚀 PR: github.com/php/php-src/pu… #phptips

alexdaubois's tweet image. 📣 This JUST got merged in #PHP a few minutes ago!

It is currently challenging to deal with recursion in anonymous functions. Not anymore in PHP 8.5: the &quot;Closure::getCurrent()&quot; method fetches the current closure you&apos;re in 🚀

PR: github.com/php/php-src/pu…

#phptips

Need to reverse a string in #PHP? 💡Here are 2 ways to get the same output in a single line! Which one do you prefer? #PHPTips #Coding #WebDev

iharpreetbhatti's tweet image. Need to reverse a string in #PHP?

💡Here are 2 ways to get the same output in a single line!

Which one do you prefer? #PHPTips #Coding #WebDev

#PHPTips Need to sum up all the values in an array? Try using PHP's built-in array_sum function! It's a simple and efficient way to calculate the total, without the need for loops or variables. #PHP #codingtips

amrcodes's tweet image. #PHPTips Need to sum up all the values in an array? Try using PHP&apos;s built-in array_sum function! It&apos;s a simple and efficient way to calculate the total, without the need for loops or variables. #PHP #codingtips

Here's a simple way to copy a string to the Windows Clipboard from a PHP CLI script. Use responsibly! #php #phptips

EmmaDSCodes's tweet image. Here&apos;s a simple way to copy a string to the Windows Clipboard from a PHP CLI script. Use responsibly! #php #phptips

Use the `wp_nav_menu()` function to easily display custom navigation menus in your theme. Simply add it to your template file where you want the menu to appear: This function is highly customizable, allowing you to create dynamic menus with ease! #WordPress #PHPTips

freelancerguy_'s tweet image. Use the `wp_nav_menu()` function to easily display custom navigation menus in your theme. Simply add it to your template file where you want the menu to appear:

This function is highly customizable, allowing you to create dynamic menus with ease! #WordPress #PHPTips

Right way to secure your session. 💡Tips: #php #session #phptips #phptricks #security #xss #csrf

CodeSushil's tweet image. Right  way to secure your session.

💡Tips:
#php
#session
#phptips
#phptricks
#security
#xss #csrf

Learn PHP With Me: if-else, switch, and Match expression. #php #learnPHP #phptips #Tips #tricks #CodeWithSushil #CONNECT

CodeSushil's tweet image. Learn PHP With Me: if-else, switch, and Match expression.

#php
#learnPHP
#phptips
#Tips
#tricks
#CodeWithSushil
#CONNECT

Is mysqli the old-school PHP player while PDO is the new kid on the block? Source: devhubby.com/thread/what-is… #PHPTips #Coding #PHPDevelopment #CodingTips #difference #bethedifference

devhubbycom's tweet image. Is mysqli the old-school PHP player while PDO is the new kid on the block?

Source: devhubby.com/thread/what-is…

#PHPTips #Coding #PHPDevelopment #CodingTips #difference #bethedifference

PHP's array_filter for cleaner code! Here's how to remove all empty values from an array in just one line: This simple function call uses strlen to keep only non-empty strings. #PHP #PHPTips

aecarlosae's tweet image. PHP&apos;s array_filter for cleaner code! 

Here&apos;s how to remove all empty values from an array in just one line:

This simple function call uses strlen to keep only non-empty strings. #PHP #PHPTips

🔥 #PHP Tip 🔥 Use PHP's built-in functions like `array_map`, `array_filter`, and `array_reduce` to manipulate arrays in a concise and readable way. 🚀🔍 #PHPTips #PHPTricks #PHPDeveloper #LaravelCommunity #WebDevelopment #WebDev #CodeTips #CodingLife #CodingTips

alnahian2003's tweet image. 🔥 #PHP Tip 🔥

Use PHP&apos;s built-in functions like `array_map`, `array_filter`, and `array_reduce` to manipulate arrays in a concise and readable way. 🚀🔍

#PHPTips #PHPTricks #PHPDeveloper #LaravelCommunity #WebDevelopment #WebDev #CodeTips #CodingLife #CodingTips

If I use mysql_escape_string() in Yii, will it finally pass the vibe check or will it just vibe on its own?" Source: devhubby.com/thread/how-to-… #YiiTips #SQLTips #PHPTips #SecureWebDev #yiiframework #yii

devhubbycom's tweet image. If I use mysql_escape_string() in Yii, will it finally pass the vibe check or will it just vibe on its own?&quot;

Source: devhubby.com/thread/how-to-…

#YiiTips #SQLTips #PHPTips #SecureWebDev #yiiframework #yii

For more readability and best practices in PHP, we can now use named parameters with PHP 8, this new feature allows us to assign parameter values without following the position in the parameter list, which also leads to self-documented code and more readability. #phptips #php8

_Reda_Hammada_'s tweet image. For more readability and best practices in PHP, we can now use named parameters with PHP 8, this new feature allows us to assign parameter values without following the position in the parameter list, which also leads to self-documented code and more readability. 

#phptips #php8

🔗 PHP Tip: Use the nullsafe operator `(?->)` to avoid null pointer exceptions! 🤩 i.e: `$user?->username` No more pesky isset() checks or null checks! 💻 #PHPTips #NullSafety

realtauseed's tweet image. 🔗 PHP Tip: 

Use the nullsafe operator `(?-&amp;gt;)` to avoid null pointer exceptions! 🤩

i.e: 
`$user?-&amp;gt;username`

No more pesky isset() checks or null checks! 💻

#PHPTips #NullSafety

⏱️ Automate smarter, not harder! Laravel’s Task Scheduler makes recurring tasks effortless — from cleanups to emails, streamline your workflows with just a few lines of code. 🚀 #Laravel #PHPTips #WebDevelopment #CodeLife

ALogics3609's tweet image. ⏱️ Automate smarter, not harder!

Laravel’s Task Scheduler makes recurring tasks effortless — from cleanups to emails, streamline your workflows with just a few lines of code. 🚀

#Laravel #PHPTips #WebDevelopment #CodeLife

🚀 PHP Tip! 💻 Need to execute multiple SQL queries at once? 🤔 Use the `multi_query()` method! 💥 e.g: `$mysqli->multi_query("SELECT * FROM table1; SELECT * FROM table2;");` Executes multiple queries in a single call, reducing database connections! 💻 #PHPTips #MySQLHacks

realtauseed's tweet image. 🚀 PHP Tip! 💻

Need to execute multiple SQL queries at once? 🤔

Use the `multi_query()` method! 💥

e.g: `$mysqli-&amp;gt;multi_query(&quot;SELECT * FROM table1; SELECT * FROM table2;&quot;);`

Executes multiple queries in a single call, reducing database connections! 💻

#PHPTips #MySQLHacks

🚀 PHP Tip: Use the `<<<` heredoc syntax to define multiline strings in PHP! 💻 i.e: `$multiLineString = <<<END This is a multiline string with multiple lines and no need for concatenation! END;` Goodbye, cumbersome concatenation! 👋 #PHPTips #CleanCode

realtauseed's tweet image. 🚀 PHP Tip: 

Use the `&amp;lt;&amp;lt;&amp;lt;` heredoc syntax to define multiline strings in PHP! 💻

i.e:
`$multiLineString = &amp;lt;&amp;lt;&amp;lt;END
This is a multiline string
with multiple lines
and no need for concatenation!
END;`

Goodbye, cumbersome concatenation! 👋

#PHPTips #CleanCode

Loading...

Something went wrong.


Something went wrong.


United States Trends