在将语句写入bash-profile后,PHP版本没有改变

I tried to make the xampp php version as a default php instance. At the moment the build in php version is default. In the nano .bash_profile I write the statement

export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH 

and this is no stored in the bash_profil. But when I check the php version via php -v I get the older one. Any idea?

exec "$SHELL" to load your recently changed .bash_profile. That should do it.