Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using function parameters as variables causes an error #17549

Open
isajkin opened this issue Jan 23, 2025 · 2 comments
Open

Using function parameters as variables causes an error #17549

isajkin opened this issue Jan 23, 2025 · 2 comments

Comments

@isajkin
Copy link

isajkin commented Jan 23, 2025

function func($par1="",$par2="",$par3=""){
.....
foreach($array as $par3=>$val){
.....
}

.....
}
php 8.2

@isajkin isajkin closed this as completed Jan 23, 2025
@isajkin isajkin reopened this Jan 23, 2025
@cmb69
Copy link
Member

cmb69 commented Jan 23, 2025

That is certainly the wrong repository (but also doesn't look like a bug).

@cmb69 cmb69 transferred this issue from php/web-php Jan 23, 2025
@cmb69
Copy link
Member

cmb69 commented Jan 23, 2025

Please provide an SSCCE, and/or clarify what you expect to happen, and what actually happens.

@cmb69 cmb69 changed the title Использование параметров функции в качестве переменных вызывает ошибку Using function parameters as variables causes an error Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants