using ChatGPT for PHP code refactoring

prompts, commands:

##########################################################

refactor this code for php 7.4

##########################################################

refactor php code to hide this message: 'Trying to access array offset on value of type null '

##########################################################

refactor this php code for php 5.4 use if else statement

##########################################################

refactor this php code for php 5.4
use if else statement
do not use for cycle

##########################################################

refactor this php code which run with php 5.4 and php 7
use if else statement
do not use for cycle

##########################################################

https://chat.openai.com/

Tapasztalat: Sokszor újra és újra kell generálni az utasítást kicsit módosítva, pontosítva a szöveget.

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress