Sorry, noob question. What's the best way to refactor this?
if (is_dir('temp'))
{
===== do action A =====
}
else
{
mkdir("/path/to/my/dir", 0755);
===== do action A =====
}
Thanks.
Sorry, noob question. What's the best way to refactor this?
if (is_dir('temp'))
{
===== do action A =====
}
else
{
mkdir("/path/to/my/dir", 0755);
===== do action A =====
}
Thanks.