ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How do you define function in php and can you call function in other file?

user-image
تم إضافة السؤال من قبل Fahmi Aijaz Aijaz , Tata classedge coordinator , 2 coms consulting
تاريخ النشر: 2017/03/20
Suresh Ramachandran
من قبل Suresh Ramachandran , Application Administrator , Healthcare Solutions

ff1.php

<?php

  function call1($int, $string){ //function parameters, two variables.

    return $string;  //returns the second argument passed into the function

  }

?>

 

ff2.php

<?php

  include 'File1.php';

  echo first(1,"Call"); //returns omg lol;

?>

 

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟